function redhen_menu in RedHen CRM 7
Implements hook_menu().
File
- ./
redhen.module, line 19 - Defines basic functionality common to all parts of the Redhen CRM.
Code
function redhen_menu() {
$items = array();
// Menu items that are basically just menu blocks.
$items['redhen'] = array(
'title' => 'CRM Dashboard',
'description' => 'RedHen CRM Dashboard',
'weight' => -8,
'page callback' => 'redhen_landing_page',
'access arguments' => array(
'access redhen',
),
'file' => 'includes/redhen.admin.inc',
);
$items['admin/structure/redhen'] = array(
'title' => 'RedHen CRM',
'description' => 'Administer RedHen CRM items, such as contacts, organizations, memberships, etc.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'administer redhen',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/config/redhen'] = array(
'title' => 'RedHen CRM',
'description' => 'Settings for RedHen modules.',
'position' => 'right',
'weight' => -10,
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'administer site configuration',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/config/redhen/crm'] = array(
'title' => 'RedHen CRM settings',
'description' => 'Configure RedHen CRM.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'redhen_settings',
),
'access arguments' => array(
'administer redhen',
),
'file' => 'includes/redhen.admin.inc',
);
return $items;
}