function content_profile_menu_alter in Content Profile 6
Implementation of hook_menu_alter(). Take over menu items generated by the user module for our categories.
File
- ./
content_profile.module, line 63
Code
function content_profile_menu_alter(&$items) {
foreach (content_profile_get_types('names', 'edit_tab', 'sub') as $type => $type_name) {
if (!empty($items['user/%user_category/edit/' . $type])) {
$item =& $items['user/%user_category/edit/' . $type];
$item = array(
'page callback' => 'content_profile_page_edit',
'page arguments' => array(
$type,
1,
),
'access callback' => 'content_profile_page_access',
'access arguments' => array(
$type,
1,
),
'file' => 'node.pages.inc',
'file path' => drupal_get_path('module', 'node'),
) + $item;
}
}
}