Commit 9929beae authored by Eric Rasmussen's avatar Eric Rasmussen Committed by Tim Steiner
Browse files

[gh-500] Undo 3dd4e96 and look for draggableviews key in form array

parent 2feeb207
......@@ -86,9 +86,11 @@ function unl_varnish_node_update($node) {
}
/**
* Implements hook_form_FORM_ID_alter().
* Purges varnish when a Draggable Views form is saved.
* Implements hook_form_alter().
*/
function unl_varnish_form_views_form_drag_page_alter(&$form, $form_state, $form_id) {
$form['#submit'][] = 'varnish_purge_all_pages';
function unl_varnish_form_alter(&$form, $form_state, $form_id) {
// Purges varnish when a Draggable Views form is saved.
if (array_key_exists('draggableviews', $form)) {
$form['#submit'][] = 'varnish_purge_all_pages';
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment