You are here

function commerce_order_types_help in Commerce Order Types 7

Implements hook_help().

File

./commerce_order_types.module, line 105
Provides a UI for creating and managing custom order types.

Code

function commerce_order_types_help($path, $arg) {

  // Display the order type's help on the order add page.
  if (strpos($path, 'admin/commerce/orders/add') === 0 && !empty($arg[5])) {
    $type = $arg[5];
    $order_type = commerce_order_types_order_types($type);
    $help = $order_type->help;
    if (!empty($help)) {
      return '<p>' . filter_xss_admin($help) . '</p>';
    }
  }
}