function commerce_customer_ui_entity_info_alter in Commerce Core 7
Implements hook_entity_info_alter().
File
- modules/
customer/ commerce_customer_ui.module, line 217
Code
function commerce_customer_ui_entity_info_alter(&$entity_info) {
// Add a URI callback to the profile entity.
$entity_info['commerce_customer_profile']['uri callback'] = 'commerce_customer_ui_customer_profile_uri';
// Expose the admin UI for profile fields.
foreach ($entity_info['commerce_customer_profile']['bundles'] as $type => &$bundle) {
$bundle['admin'] = array(
'path' => 'admin/commerce/customer-profiles/types/' . strtr($type, '_', '-'),
'real path' => 'admin/commerce/customer-profiles/types/' . strtr($type, '_', '-'),
'access arguments' => array(
'administer customer profile types',
),
);
}
}