You are here

function lingotek_permission in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lingotek.module \lingotek_permission()
  2. 7.2 lingotek.module \lingotek_permission()
  3. 7.3 lingotek.module \lingotek_permission()
  4. 7.4 lingotek.module \lingotek_permission()
  5. 7.5 lingotek.module \lingotek_permission()

Implements hook_permission().

1 call to lingotek_permission()
LingotekFunctionalTest::setUp in tests/lingotek.base.test
Does general setup for all Lingotek tests.

File

./lingotek.module, line 621

Code

function lingotek_permission() {
  $permissions = array(
    'administer lingotek' => array(
      'title' => 'Administer Lingotek',
      'description' => t('Access the administrative settings for the module.'),
    ),
    'translation' => array(
      'title' => 'Translate',
      'description' => t('Access to the translate content (e.g., the "Translations" tab will be available on nodes, comments will be translatable)'),
    ),
    'manage projects' => array(
      'title' => 'Project Management',
      'description' => t('Access the Lingotek tab on content types (Must also have permission to edit the content type in question).'),
    ),
    'use lingotek developer tools' => array(
      'title' => 'Developer',
      'description' => t('Access developer tools useful for detailed information and debugging'),
    ),
  );
  return $permissions;
}