function profile_module_manager_menu in Profile Module Manager 7.2
Same name and namespace in other branches
- 7 profile_module_manager.module \profile_module_manager_menu()
Implements hook_menu().
Return value
mixed
File
- ./
profile_module_manager.module, line 22 - Alters grouping in admin/modules using hook_system_info_alter
Code
function profile_module_manager_menu() {
// Admin/settings ui provided by express_admin or custom solution.
$items['admin/settings/site-configuration/bundles'] = array(
'title' => 'Enable Bundles',
'description' => 'Enable Add-on Bundles for additional functionality',
'page callback' => 'drupal_goto',
'page arguments' => array(
'admin/settings/bundles/list',
),
'access arguments' => array(
'enable module bundles',
),
'weight' => 50,
);
if (variable_get('profile_module_manager_disable_enabling', 0) == 0) {
$items['admin/settings/bundles/list'] = array(
'title' => 'Configure Bundles',
'description' => 'List of bundles.',
'page callback' => 'profile_module_manager_bundle_list',
'file' => 'profile_module_manager.admin.inc',
'access arguments' => array(
'enable module bundles',
),
);
$items['admin/settings/bundles/list/core'] = array(
'title' => 'Core',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/settings/bundles/list/admin'] = array(
'title' => 'Admin',
'type' => MENU_LOCAL_TASK,
'description' => 'Add and request additional bundles',
'page callback' => 'profile_module_manager_admin_page',
'page arguments' => array(
1,
),
'access arguments' => array(
'enable admin bundles',
),
'weight' => 100,
);
$items['admin/settings/bundles/list/enable/%'] = array(
'title' => 'Enable Bundle',
'description' => 'Enable a bundle.',
'page callback' => 'profile_module_manager_bundle_enable',
'page arguments' => array(
5,
),
'file' => 'profile_module_manager.admin.inc',
'access arguments' => array(
'enable module bundles',
),
);
$items['admin/settings/bundles/list/confirm/%'] = array(
'title' => 'Confirm Enabling Bundle',
'description' => 'Enable a bundle.',
'page callback' => 'profile_module_manager_bundle_confirm',
'page arguments' => array(
5,
),
'file' => 'profile_module_manager.admin.inc',
'access arguments' => array(
'enable module bundles',
),
);
}
$items['admin/config/system/module-manager'] = array(
'title' => 'Profile Module Manager',
'description' => 'Configure Module Manager',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'profile_module_manager_admin_settings',
),
'file' => 'profile_module_manager.admin.inc',
'access arguments' => array(
'configure profile module manager',
),
);
return $items;
}