function commerce_customer_ui_menu_alter in Commerce Core 7
Implements hook_menu_alter().
File
- modules/
customer/ commerce_customer_ui.module, line 132
Code
function commerce_customer_ui_menu_alter(&$items) {
// Transform the field UI tabs into contextual links.
foreach (commerce_customer_profile_types() as $type => $profile_type) {
// Convert underscores to hyphens for the menu item argument.
$type_arg = strtr($type, '_', '-');
// Transform the field UI tabs into contextual links.
$items['admin/commerce/customer-profiles/types/' . $type_arg . '/fields']['context'] = MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE;
$items['admin/commerce/customer-profiles/types/' . $type_arg . '/display']['context'] = MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE;
}
}