1 node.module node_menu_local_tasks_alter(&$data, $router_item, $root_path)

Implements hook_menu_local_tasks_alter().

File

core/modules/node/node.module, line 2000
The core module that allows content to be submitted to the site.

Code

function node_menu_local_tasks_alter(&$data, $router_item, $root_path) {
  // Add action link to 'node/add' on 'admin/content' page.
  if ($root_path == 'admin/content') {
    $item = menu_get_item('node/add');
    if ($item['access']) {
      $data['actions']['output'][] = array(
        '#theme' => 'menu_local_action',
        '#link' => $item,
      );
    }
  }
}