function bat_booking_permission in Booking and Availability Management Tools for Drupal 7
Implements hook_permission().
File
- modules/
bat_booking/ bat_booking.module, line 113
Code
function bat_booking_permission() {
$permissions = array();
// Permission for Bat Booking Types.
$permissions += array(
'administer bat_booking_type entities' => array(
'title' => t('Administer booking types'),
'description' => t('Allows users to add booking types and configure their fields.'),
'restrict access' => TRUE,
),
);
// Permission for Booking page.
$permissions += array(
'book units' => array(
'title' => t('Book units'),
'description' => t('Allows users to access booking page.'),
),
);
$permissions += bat_entity_access_permissions('bat_booking');
return $permissions;
}