You are here

function hook_views_admin_links_alter in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 docs/docs.php \hook_views_admin_links_alter()

This hook should be placed in MODULENAME.views.inc and it will be auto-loaded. This must either be in the same directory as the .module file or in a subdirectory named 'includes'.

Alter the links that appear over a view. They are in a format suitable for theme('links').

Warning: $view is not a reference in PHP4 and cannot be modified here. But it IS a reference in PHP5, and can be modified. Please be careful with it.

See also

theme_links

Related topics

1 invocation of hook_views_admin_links_alter()
template_preprocess_views_view in theme/theme.inc
Preprocess the primary theme implementation for a view.

File

docs/docs.php, line 743
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function hook_views_admin_links_alter(&$links, $view) {

  // example code here
}