You are here

function boxes_menu_local_tasks_alter in Boxes 7.2

Implements hook_menu_local_tasks_alter().

File

./boxes.module, line 801

Code

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

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