function views_content_get_pane_links_alter
Implements hook_get_pane_links_alter().
File
-
views_content/
views_content.module, line 288
Code
function views_content_get_pane_links_alter(&$links, $pane, $content_type) {
if ($pane->type === 'views_panes') {
list($view_name, $display_name) = explode('-', $pane->subtype);
$destination = array(
'destination' => current_path(),
);
$links['top'][] = array(
'title' => t('Edit view'),
'href' => url('admin/structure/views/view/' . $view_name . '/edit/' . $display_name, array(
'query' => $destination,
'absolute' => TRUE,
)),
);
}
}