You are here

function commerce_order_ui_help in Commerce Core 7

Implements hook_help().

File

modules/order/commerce_order_ui.module, line 196

Code

function commerce_order_ui_help($path, $arg) {

  // Display a user configurable help text on the order add page.
  if (strpos($path, 'admin/commerce/orders/add') === 0) {
    $help = variable_get('commerce_order_help_text', '');
    if (!empty($help)) {
      $help = commerce_i18n_string('commerce:order:help:create', $help, array(
        'sanitize' => FALSE,
      ));
      return '<p>' . filter_xss_admin($help) . '</p>';
    }
  }
}