function merci_content_types in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Same name and namespace in other branches
- 6.2 includes/api.inc \merci_content_types()
- 7.2 includes/api.inc \merci_content_types()
1 call to merci_content_types()
- merci_load_item_settings in merci_migrate/
merci_items.inc
File
- merci_migrate/
merci_items.inc, line 197
Code
function merci_content_types($type_name = NULL) {
// handle type name with either an underscore or a dash
$type_name = !empty($type_name) ? str_replace('-', '_', $type_name) : NULL;
$info = _merci_content_type_info();
if (!isset($type_name)) {
return $info;
}
else {
return isset($info[$type_name]) ? $info[$type_name] : array();
}
}