You are here

function context_ui_permission in Context 7.3

Implementation of hook_permission().

File

context_ui/context_ui.module, line 77

Code

function context_ui_permission() {
  $permissions = array();
  $permissions['administer contexts'] = array(
    'title' => 'Administer contexts',
    'description' => 'Associate menus, views, blocks, etc. with different contexts to structure your site.',
  );
  $permissions['context ajax block access'] = array(
    'title' => t('Access all blocks'),
    'description' => t('Allows users to access all rendered blocks via an AJAX callback. If you have some blocks that should not be rendered for some users but need those users to be able to use context UI, then implement hook_context_allow_ajax_block_access with the necessary logic.'),
  );
  return $permissions;
}