You are here

function rooms_booking_menu_local_tasks_alter in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Implements hook_menu_local_tasks_alter().

File

modules/rooms_booking/rooms_booking.module, line 891
Manage Bookings - Bookings are tied to a customer profile and possible a Unit ID and Order ID.

Code

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

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