function rooms_booking_manager_permission in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Implements hook_permission().
File
- modules/
rooms_booking_manager/ rooms_booking_manager.module, line 12 - Rooms Booking Manager brings together all the pieces required to find a room and book it - including the DrupalCommerce integration
Code
function rooms_booking_manager_permission() {
$permissions = array(
'book units' => array(
'title' => t('Book units'),
'description' => t('Allows users to book units.'),
),
'book in advance without limitation' => array(
'title' => t('Book in advance without time limitation'),
'description' => t('Disregards any time limitations for advance bookings'),
),
'make same-day bookings' => array(
'title' => t('Make same-day bookings'),
'description' => t('Disregards the rooms booking start date limitations'),
),
);
return $permissions;
}