You are here

function shorten_cs_permission in Shorten URLs 8

Same name and namespace in other branches
  1. 8.2 modules/shorten_cs/shorten_cs.module \shorten_cs_permission()
  2. 7.2 shorten_cs.module \shorten_cs_permission()
  3. 7 shorten_cs.module \shorten_cs_permission()

Implements hook_perm().

File

modules/shorten_cs/shorten_cs.module, line 76
Allows users to specify custom services for the Shorten URLs module.

Code

function shorten_cs_permission() {
  return array(
    // This permission allows tricking users into visiting a malicious site,
    // so it is designated as "restricted access"
    'administer Shorten URLs custom services' => array(
      'title' => t('Administer custom services'),
      'description' => t('Add and remove custom URL shortening services.'),
      'restrict access' => TRUE,
    ),
  );
}