You are here

function ad_permission in Advertisement 7

Same name and namespace in other branches
  1. 5.2 ad.module \ad_permission()
  2. 6.3 ad.module \ad_permission()
  3. 6.2 ad.module \ad_permission()
  4. 7.2 ad.module \ad_permission()

Implementation of hook_permission().

4 calls to ad_permission()
ad_owners_access in owners/ad_owners.module
Menu item access callback.
ad_report_bargraph_access in report/ad_report.module
Menu system callback, determine if current user can generate reports.
ad_text_adapi in text/ad_text.module
Implementation of hook_adapi().
_ad_text_node_form in text/ad_text.module
Adapi helper function for displaying a node form.
2 string references to 'ad_permission'
ad_menu in ./ad.module
Implementation of hook_menu().
ad_owners_menu in owners/ad_owners.module
Implementation of hook_menu().

File

./ad.module, line 587

Code

function ad_permission() {
  return array(
    'administer advertisements' => array(
      'title' => t('Administer advertisements'),
    ),
    'create advertisements' => array(
      'title' => t('Create advertisements'),
    ),
    'edit own advertisements' => array(
      'title' => t('Edit own advertisements'),
    ),
    'edit any advertisement' => array(
      'title' => t('Edit any advertisement'),
    ),
    'delete own advertisements' => array(
      'title' => t('Delete own advertisements'),
    ),
    'delete any advertisement' => array(
      'title' => t('Delete any advertisement'),
    ),
    'show advertisements' => array(
      'title' => t('Show advertisements'),
    ),
  );
}