function hook_menu_local_tasks_alter

Alter tabs and actions displayed on the page before they are rendered.

This hook is invoked by menu_local_tasks(). The system-determined tabs and actions are passed in by reference. Existing tabs or actions may be altered.

Parameters

array $data: An associative array containing tabs and actions. See hook_menu_local_tasks() for details.

array $router_item: The menu system router item of the page.

string $root_path: The path to the root item for this set of tabs.

See also

hook_menu_local_tasks()

Related topics

3 functions implement hook_menu_local_tasks_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

design_test_menu_local_tasks_alter in drupal/core/modules/system/tests/modules/design_test/design_test.module
Implements hook_menu_local_tasks_alter().
forum_menu_local_tasks_alter in drupal/core/modules/forum/forum.module
Implements hook_menu_local_tasks_alter().
menu_test_menu_local_tasks_alter in drupal/core/modules/system/tests/modules/menu_test/menu_test.module
Implements hook_menu_local_tasks_alter().
1 invocation of hook_menu_local_tasks_alter()
menu_local_tasks in drupal/core/includes/menu.inc
Collects the local tasks (tabs), action links, and the root path.

File

drupal/core/modules/system/system.api.php, line 989
Hooks provided by Drupal core and the System module.

Code

function hook_menu_local_tasks_alter(&$data, $router_item, $root_path) {
}