You are here

function shurly_service_permission in ShURLy 8

Same name and namespace in other branches
  1. 7 shurly_service/shurly_service.module \shurly_service_permission()

Implements hook_permission().

File

shurly_service/shurly_service.module, line 13
Link ShURLy functionalities to services module. @todo add option to rate limit requests @todo add option for user api keys

Code

function shurly_service_permission() {
  return [
    'administer short URL services' => [
      'title' => t('Administer short URL services'),
    ],
    'Expand short URLs' => [
      'title' => t('Expand short URLs'),
    ],
    'Request custom short URL' => [
      'title' => t('Request custom short URL'),
      'description' => t('Allow users to pass a desired custom short URL to the shURLy service.'),
    ],
  ];
}