You are here

function cf_menu_cf_permission_alter in Common Functionality 7

Same name and namespace in other branches
  1. 7.2 modules/cf_menu/cf_menu.module \cf_menu_cf_permission_alter()

Implements hook_cf_permission_alter().

See also

cf_permission()

File

modules/cf_menu/cf_menu.module, line 34

Code

function cf_menu_cf_permission_alter(&$permissions) {
  if (!is_array($permissions)) {
    $permissions = array();
  }
  $accessibility_page = variable_get('cf_menu_accessibility_page', TRUE);
  if ($accessibility_page) {
    $permissions['view content accessibility administration page'] = array(
      'title' => t("View Content Accessibility Administration Page"),
      'description' => t("Grants permissions to view the content accessibility administration page."),
    );
  }

  // see: http://drupal.org/node/460408#comment-4525794
  $permissions['view unpublished content in menu'] = array(
    'title' => t("View Unpublished Content in Menu"),
    'description' => t("Grants permissions to view menu items that is unpublished content. (This requires a patch against drupal core in order to function.)"),
  );
}