You are here

function media_acquiadam_permission in Media: Acquia DAM 7

Implements hook_permission().

File

./media_acquiadam.module, line 113

Code

function media_acquiadam_permission() {
  $perms = [];
  $perms['administer media acquiadam'] = [
    'title' => t('Administer Media: Acquia DAM'),
    'description' => t('Allows administration of Media: Acquia DAM'),
    'restrict access' => TRUE,
  ];
  $perms['view acquiadam assets'] = [
    'title' => t('View Acquia DAM assets'),
    'description' => t('Allows viewing of Acquia DAM assets'),
  ];
  $perms['view expired acquiadam assets'] = [
    'title' => t('View expired Acquia DAM assets'),
    'description' => t('Allows viewing of Acquia DAM assets that have expired'),
    'restrict access' => TRUE,
  ];
  $perm['refresh acquiadam assets'] = [
    'title' => t('Refresh Acquia DAM asset information'),
    'description' => t('Allows refreshing Acquia DAM asset information if the local cache is out of date'),
  ];
  $perms['view acquiadam links'] = [
    'title' => t('View Acquia DAM links'),
    'description' => t('Allows the user to view links to Acquia DAM.'),
  ];
  return $perms;
}