You are here

function views_ui_views_plugins_alter in Views (for Drupal 7) 7.3

Implements hook_views_plugins_alter().

File

./views_ui.module, line 714
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 editing 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',
      ),
    );
  }
}