function theme_merci_line_item_type_admin_overview in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
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_merci_line_item_type_admin_overview()
- merci_line_item_ui_types_overview in merci_line_item/
includes/ merci_line_item_ui.types.inc - Menu callback: display an overview of available types.
File
- merci_line_item/
includes/ merci_line_item_ui.types.inc, line 52
Code
function theme_merci_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;
}