function hook_views_ui_display_top_links_alter
This hooks allows to alter the links at the top of the view edit form.
Some modules might want to add links there.
Parameters
array $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').
object $view: The full view object which is currently edited.
string $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 includes/
admin.inc - Render the top of the display so it can be updated during ajax operations.
File
-
./
views.api.php, line 1238
Code
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;
}
}