You are here

function config_perms_menu in Custom Permissions 6.2

Same name and namespace in other branches
  1. 7.2 config_perms.module \config_perms_menu()

Implementation of hook_menu().

File

./config_perms.module, line 83
Adds more granular permissions for items under 'administer site configuration'.

Code

function config_perms_menu() {
  $items = array();
  $items['config_perms/ahah'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'config_perms_ahah',
    'page arguments' => array(),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'config_perms.admin.inc',
  );
  $items['admin/settings/config_perms'] = array(
    'title' => 'Site Configuration Permissions',
    'description' => 'Adds more granular permissions for items under \'administer site configuration\'',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'config_perms_admin_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'config_perms.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}