You are here

function merci_node_type_status in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.2

Same name and namespace in other branches
  1. 6.2 includes/api.inc \merci_node_type_status()
1 call to merci_node_type_status()
merci_handler_field_merci_node_type_status::render in handlers/merci_handler_field.inc
Render the field.

File

includes/api.inc, line 725
MERCI - Managed Equipment Reservation Checkout and Inventory

Code

function merci_node_type_status($code = NULL) {
  $statuses = array(
    MERCI_STATUS_ACTIVE => t('Active'),
    MERCI_STATUS_INACTIVE => t('Inactive'),
  );
  if (isset($code)) {
    return $statuses[$code];
  }
  else {
    return $statuses;
  }
}