1 views_ui.module views_ui_views_plugins_alter(&$plugins)

Implements hook_views_plugins_alter().

File

core/modules/views_ui/views_ui.module, line 795
Provide structure for the administrative interface to Views.

Code

function views_ui_views_plugins_alter(&$plugins) {
  // Attach contextual links to each display plugin. The links will point to
  // paths underneath "admin/structure/views/view/{$view->name}" (i.e., paths
  // for configuring and performing other contextual actions on the view).
  foreach ($plugins['display'] as &$display) {
    $display['contextual links']['views_ui'] = array(
      'parent path' => 'admin/structure/views/view',
      'argument properties' => array('name'),
    );
  }
}