You are here

function merci_reservation_menu_local_tasks_alter in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

File

merci_reservation/merci_reservation.module, line 6

Code

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

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