function views_ui_views_plugins_alter

Implements hook_views_plugins_alter().

File

./views_ui.module, line 714

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',
            ),
        );
    }
    unset($display);
}