You are here

function hook_draggableviews_sorted in DraggableViews 7.2

Perform actions after the weights for a Draggable view have been saved.

Parameters

object $view: The draggable view that was just sorted.

1 invocation of hook_draggableviews_sorted()
draggableviews_views_submit in ./draggableviews.module
Save weight records after form submit.

File

./draggableviews.api.php, line 32
Hooks provided by the Draggableviews module.

Code

function hook_draggableviews_sorted($view) {
  if (module_exists('d8cache')) {
    $tags = array(
      'views:' . $view->name . '.' . $view->current_display,
    );
    drupal_invalidate_cache_tags($tags);
  }
}