You are here

function subpermissions_permission in Permissions subset 7

Implementation of hook_permission

File

./subpermissions.module, line 6

Code

function subpermissions_permission() {
  return array(
    'access subpermission form' => array(
      'title' => t('Access subpermission form'),
      'description' => t('Specify which roles can access the subpermission form page, and therefore update permissions for other users and themselves'),
    ),
    'administer subpermission' => array(
      'title' => t('Administer subpermissions'),
      'description' => t('Select which permissions should be displayed on the subpermission form page'),
      'restrict access' => TRUE,
      'warning' => t('Users with this permission effectively have access to ALL unrestricted permissions'),
    ),
  );
}