You are here

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

Implements hook_permission().

File

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

Code

function rooms_booking_permission() {
  $permissions = array(
    'administer rooms_booking_type entities' => array(
      'title' => t('Administer booking types'),
      'description' => t('Allows users to add booking types and configure their fields.'),
      'restrict access' => TRUE,
    ),
    'create customer profiles on bookings' => array(
      'title' => t('Create customer profiles on bookings'),
      'description' => t('Allows users to add or edit customer profiles on bookings.'),
    ),
    'manage room bookings' => array(
      'title' => t('Manage Room Bookings'),
      'description' => t('Allows access to the Rooms Booking Admin'),
      'restrict access' => TRUE,
    ),
  );
  return $permissions + rooms_entity_access_permissions('rooms_booking');
}