You are here

function theme_product_type_admin_overview in Commerce Core 7

Builds an overview of a product type for display to an administrator.

Parameters

$variables: An array of variables used to generate the display; by default includes the type key with a value of the product type array.

1 theme call to theme_product_type_admin_overview()
commerce_product_ui_types_overview in modules/product/includes/commerce_product_ui.types.inc
Menu callback: display an overview of available types.

File

modules/product/includes/commerce_product_ui.types.inc, line 56

Code

function theme_product_type_admin_overview($variables) {
  $product_type = $variables['product_type'];
  $output = check_plain($product_type['name']);
  $output .= ' <small>' . t('(Machine name: @type)', array(
    '@type' => $product_type['type'],
  )) . '</small>';
  $output .= '<div class="description">' . filter_xss_admin($product_type['description']) . '</div>';
  return $output;
}