You are here

function _ds_ui_perm in Display Suite 6.2

Same name and namespace in other branches
  1. 6.3 includes/ds.registry.inc \_ds_ui_perm()
  2. 6 includes/ds.registry.inc \_ds_ui_perm()

Return permissions.

1 call to _ds_ui_perm()
ds_ui_perm in ./ds_ui.module
Implementation of hook_perm().

File

includes/ds.registry.inc, line 11
Registry functions.

Code

function _ds_ui_perm() {
  $perms = array(
    'access display suite',
    'administer styles',
    'use PHP in custom fields',
    'revert overridden settings',
    'export and import settings',
  );
  foreach (module_implements('ds_api') as $module) {
    $perms[] = 'administer ' . $module;
    $perms[] = 'configure layout for ' . $module;
  }
  return $perms;
}