function commerce_customer_ui_help in Commerce Core 7
Implements hook_help().
File
- modules/
customer/ commerce_customer_ui.module, line 180
Code
function commerce_customer_ui_help($path, $arg) {
switch ($path) {
case 'admin/commerce/customer-profiles/types/add':
return '<p>' . t('Individual customer profile types can have different fields assigned to them.') . '</p>';
}
// Return the user defined help text per customer profile type when adding profiles.
if ($arg[1] == 'commerce' && $arg[2] == 'customer-profiles' && $arg[3] == 'add' && $arg[4]) {
$profile_type = commerce_customer_profile_type_load($arg[4]);
return !empty($profile_type['help']) ? '<p>' . filter_xss_admin($profile_type['help']) . '</p>' : '';
}
}