You are here

function asset_menu_local_tasks_alter in Asset 7

Implements hook_menu_local_tasks_alter().

File

./asset.module, line 419
Asset module.

Code

function asset_menu_local_tasks_alter(&$data, $router_item, $root_path) {

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