You are here

function merci_line_item_types in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

List of task Types.

8 calls to merci_line_item_types()
MerciLineItemTypeUIController::hook_menu in merci_line_item/includes/entity_type.ui.inc
Provides definitions for implementing hook_menu().
MerciLineItemUIController::hook_menu in merci_line_item/includes/entity.ui.inc
Provides definitions for implementing hook_menu().
merci_line_item_entity_info_alter in merci_line_item/merci_line_item.module
implements hook_entity_info_alter().
merci_line_item_field_extra_fields in merci_line_item/merci_line_item.module
Implements hook_field_extra_fields().
merci_line_item_type_get_name in merci_line_item/merci_line_item.module
Returns the human readable name of any or all line item types.

... See full list

1 string reference to 'merci_line_item_types'
merci_line_item_types_reset in merci_line_item/merci_line_item.module
Resets the cached list of line item types.

File

merci_line_item/merci_line_item.module, line 604
Defines the core MERCI line item entity and API functions interact with line items.

Code

function merci_line_item_types($type_name = NULL) {
  $types = entity_load_multiple_by_name('merci_line_item_type', isset($type_name) ? array(
    $type_name,
  ) : FALSE);
  return isset($type_name) ? reset($types) : $types;
}