You are here

function lingotek_permission in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.7 lingotek.module \lingotek_permission()
  2. 7.2 lingotek.module \lingotek_permission()
  3. 7.4 lingotek.module \lingotek_permission()
  4. 7.5 lingotek.module \lingotek_permission()
  5. 7.6 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 426

Code

function lingotek_permission() {
  $permissions = array(
    'administer lingotek' => array(
      'title' => 'Administer Lingotek',
      'description' => t('Access the administrative settings for the module.'),
    ),
    '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).'),
    ),
    'adjust auto-download node setting' => array(
      'title' => 'Synchronization Method',
      'description' => t('Allow node-level setting of setting the synchronization method'),
    ),
    'translate url aliases' => array(
      'title' => 'URL Alias Translation',
      'description' => t('Allow node-level setting of setting the URL alias translation'),
    ),
    'use lingotek developer tools' => array(
      'title' => 'Developer',
      'description' => t('Access developer tools useful for detailed information and debugging'),
    ),
    'access lingotek utilities' => array(
      'title' => t('Access Lingotek Utilities'),
      'description' => t('Access admin-only utility pages.'),
    ),
    'access per-item lingotek project selection' => array(
      'title' => t('Per-item Project Selection'),
      'description' => t('Access the Lingotek Project selector on content creation forms.'),
    ),
    'access per-item lingotek vault selection' => array(
      'title' => t('Per-item Vault Selection'),
      'description' => t('Access the Lingotek TM Vault selector on content creation forms.'),
    ),
  );
  return $permissions;
}