You are here

function theme_shipping_method_admin_overview in Commerce Shipping 7.2

Builds an overview of a shipping method for display to an administrator.

Parameters

array $variables: An array of variables used to generate the display; by default includes the shipping_method key with a value of the shipping method info array.

1 theme call to theme_shipping_method_admin_overview()
commerce_shipping_ui_overview in includes/commerce_shipping_ui.admin.inc
Displays all shipping methods or services defined for a method in a table.

File

includes/commerce_shipping_ui.admin.inc, line 76
Administrative page callbacks for the Shipping UI module.

Code

function theme_shipping_method_admin_overview($variables) {
  $shipping_method = $variables['shipping_method'];

  // Build the actual output.
  $output = check_plain($shipping_method['title']);
  $output .= ' <small> (Machine name: ' . check_plain($shipping_method['name']) . ')</small>';
  $output .= '<div class="description">' . filter_xss_admin($shipping_method['description']) . '</div>';
  return $output;
}