function theme_line_item_type_admin_overview in Commerce Core 7
Builds an overview of a line item 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 line item type object.
1 theme call to theme_line_item_type_admin_overview()
- commerce_line_item_ui_types_overview in modules/
line_item/ includes/ commerce_line_item_ui.types.inc - Menu callback: display an overview of available types.
File
- modules/
line_item/ includes/ commerce_line_item_ui.types.inc, line 52
Code
function theme_line_item_type_admin_overview($variables) {
$line_item_type = $variables['line_item_type'];
$output = check_plain($line_item_type['name']);
$output .= ' <small>' . t('(Machine name: @type)', array(
'@type' => $line_item_type['type'],
)) . '</small>';
if (!empty($line_item_type['description'])) {
$output .= '<div class="description">' . filter_xss_admin($line_item_type['description']) . '</div>';
}
return $output;
}