Full ELMS Learning Network documentation
function hook_views_ui_display_top_links_alter
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).cis7 views.api.php | hook_views_ui_display_top_links_alter(&$links, $view, $display_id) |
cle7 views.api.php | hook_views_ui_display_top_links_alter(&$links, $view, $display_id) |
elmsmedia7 views.api.php | hook_views_ui_display_top_links_alter(&$links, $view, $display_id) |
icor7 views.api.php | hook_views_ui_display_top_links_alter(&$links, $view, $display_id) |
meedjum_blog7 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.
Parameters
$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 sites/
all/ modules/ ulmus/ views/ includes/ admin.inc - Render the top of the display so it can be updated during ajax operations.
File
- sites/
all/ modules/ ulmus/ views/ views.api.php, line 1062 - Describe hooks provided by the Views module.
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;
}
}