function hook_views_ui_display_top_links_alter

nittany7 views.api.php hook_views_ui_display_top_links_alter(&$links, $view, $display_id)
cis7 views.api.php hook_views_ui_display_top_links_alter(&$links, $view, $display_id)
mooc7 views.api.php hook_views_ui_display_top_links_alter(&$links, $view, $display_id)

This hooks allows to alter the links at the top of the view edit form. Some modules might want to add links there.


$links: An array of links which will be displayed at the top of the view edit form. Each entry should be on a form suitable for theme('link').

view $view: The full view object which is currently edited.

$display_id: The current display id which is edited. For example that's 'default' or 'page_1'.

Related topics

1 invocation of hook_views_ui_display_top_links_alter()
views_ui_render_display_top in modules/contrib/views/includes/
Render the top of the display so it can be updated during ajax operations.


modules/contrib/views/views.api.php, line 1062
Describe hooks provided by the Views module.


function hook_views_ui_display_top_links_alter(&$links, $view, $display_id) {
  // Put the export link first in the list.
  if (isset($links['export'])) {
    $links = array('export' => $links['export']) + $links;