You are here

function panels_permission in Panels 7.3

Implements hook_permission().

@todo Almost all of these need to be moved into pipelines.

File

./panels.module, line 320
Core functionality for the Panels engine.

Code

function panels_permission() {
  return array(
    'use panels dashboard' => array(
      'title' => t("Use Panels Dashboard"),
      'description' => t('Allows a user to access the <a href="@url">Panels Dashboard</a>.', array(
        '@url' => url('admin/structure/panels'),
      )),
    ),
    // @todo
    'view pane admin links' => array(
      'title' => t("View administrative links on Panel panes"),
      'description' => "",
    ),
    // @todo should we really have a global perm for this, or should it be moved into a pipeline question?
    'administer pane access' => array(
      'title' => t("Configure access settings on Panel panes"),
      'description' => t("Access rules (often also called visibility rules) can be configured on a per-pane basis. This permission allows users to configure those settings."),
    ),
    'use panels in place editing' => array(
      'title' => t("Use the Panels In-Place Editor"),
      'description' => t("Allows a user to utilize Panels' In-Place Editor."),
    ),
    'change layouts in place editing' => array(
      'title' => t("Change layouts with the Panels In-Place Editor"),
      'description' => t("Allows a user to change layouts with the IPE."),
    ),
    'bypass access in place editing' => array(
      'title' => t("Bypass access checks when using Panels In-Place Editor"),
      'description' => t("Allows using IPE even if user does not have additional permissions granted by other modules."),
      'restrict access' => TRUE,
    ),
    'administer advanced pane settings' => array(
      'title' => t("Configure advanced settings on Panel panes"),
      'description' => "",
    ),
    'administer panels layouts' => array(
      'title' => t("Administer Panels layouts"),
      'description' => t("Allows a user to administer exported Panels layout plugins & instances."),
    ),
    'administer panels styles' => array(
      'title' => t("Administer Panels styles"),
      'description' => t("DEPRECATED: Modules using this permission should use specific style permissions. See Issue #2329419 for more info."),
    ),
    'administer panels display styles' => array(
      'title' => t("Administer Panels display styles"),
      'description' => t("Allows a user to administer the styles of Panel displays."),
    ),
    'administer panels pane styles' => array(
      'title' => t("Administer Panels pane styles"),
      'description' => t("Allows a user to administer the styles of Panel panes."),
    ),
    'administer panels region styles' => array(
      'title' => t("Administer Panels region styles"),
      'description' => t("Allows a user to administer the styles of Panel regions."),
    ),
    'use panels caching features' => array(
      'title' => t("Configure caching settings on Panels"),
      'description' => t("Allows a user to configure caching on Panels displays and panes."),
    ),
    'use panels locks' => array(
      'title' => t('Use panel locks'),
      'description' => t('Allows a user to lock and unlock panes in a panel display.'),
    ),
    'use ipe with page manager' => array(
      'title' => t("Use the Panels In-Place Editor with Page Manager"),
      'description' => t('Allows users with access to the In-Place editor to administer page manager pages. This permission is only needed for users without "use page manager" access.'),
    ),
  );
}