You are here

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

Implements hook_permission().

File

merci_line_item/merci_line_item.module, line 388
Defines the core MERCI line item entity and API functions interact with line items.

Code

function merci_line_item_permission() {
  $permissions = array(
    'administer merci line item types' => array(
      'title' => t('Administer MERCI line item types'),
      'description' => t('View and configure fields attached to module defined line item types.'),
      'restrict access' => TRUE,
    ),
    'administer merci line items' => array(
      'title' => t('Administer MERCI line items'),
      'description' => t('Update and delete any line item on the site.'),
      'restrict access' => TRUE,
    ),
    'create own merci line item' => array(
      'title' => t('Create own MERCI line item'),
      'description' => t('View and configure fields attached to module defined line item types.'),
    ),
    'create any merci line item' => array(
      'title' => t('Create any MERCI line item'),
      'description' => t('Update and delete any line item on the site.'),
      'restrict access' => TRUE,
    ),
    'view own merci line item' => array(
      'title' => t('View own MERCI line item'),
      'description' => t('View and configure fields attached to module defined line item types.'),
    ),
    'view any merci line item' => array(
      'title' => t('View any MERCI line item'),
      'description' => t('Update and delete any line item on the site.'),
      'restrict access' => TRUE,
    ),
  );
  return $permissions;
}