function _merci_inventory_install_create_content_types in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2
Same name and namespace in other branches
- 6 modules/merci_inventory/includes/content_types/content_types.inc \_merci_inventory_install_create_content_types()
function to create CCK content types
1 call to _merci_inventory_install_create_content_types()
- merci_inventory_enable in modules/
merci_inventory/ merci_inventory.install
File
- modules/
merci_inventory/ includes/ content_types/ content_types.inc, line 12 - merci inventory content types
Code
function _merci_inventory_install_create_content_types() {
// in order to create CCK content types, we use the form-based content_copy import/export functionality
//Load existing content_types so we're not trying to recreate something that already exists
$content_info = _content_type_info();
// create om_timeslot_theme content type
if (!in_array('merci_inventory_master', array_keys($content_info['content types']))) {
module_load_include('inc', 'merci_inventory', 'includes/content_types/merci_inventory_master_content_type');
_merci_inventory_install_create_merci_inventory_master_content_type();
}
return;
}