You are here

function clean_markup_panels_permission in Clean Markup 7.3

Same name and namespace in other branches
  1. 7.2 modules/clean_markup_panels/clean_markup_panels.module \clean_markup_panels_permission()

Implements hook_permission().

File

modules/clean_markup_panels/clean_markup_panels.module, line 11
Provides clean panels markup.

Code

function clean_markup_panels_permission() {
  $permissions = array();
  $permissions['administer clean markup panel pane settings'] = array(
    'title' => t('Administer clean panel pane markup settings'),
    'description' => t('Change the HTML used to render panel panes.') . '<br />' . t('Users with this permission can insert arbitrary HTML, including script code, which they could use to launch Cross Site Scripting (XSS) attacks.'),
    'restrict access' => TRUE,
  );
  $permissions['administer clean markup panel region settings'] = array(
    'title' => t('Administer clean panel region markup settings'),
    'description' => t('Change the HTML used to render panel regions.') . '<br />' . t('Users with this permission can insert arbitrary HTML, including script code, which they could use to launch Cross Site Scripting (XSS) attacks.'),
    'restrict access' => TRUE,
  );
  return $permissions;
}