You are here

function _merci_inventory_install_import_content_type in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2

Same name and namespace in other branches
  1. 6 modules/merci_inventory/includes/content_types/content_types.inc \_merci_inventory_install_import_content_type()

function to import a new content type using CCK import functionality

1 call to _merci_inventory_install_import_content_type()
_merci_inventory_install_create_merci_inventory_master_content_type in modules/merci_inventory/includes/content_types/merci_inventory_master_content_type.inc
function to create Open Media Timeslot Theme CCK content type

File

modules/merci_inventory/includes/content_types/content_types.inc, line 33
merci inventory content types

Code

function _merci_inventory_install_import_content_type($macro) {
  $form_state = array();
  $form = content_copy_import_form($form_state);
  $form_state['values']['type_name'] = 'merci_inventory_master';
  $form_state['values']['macro'] = $macro;
  return content_copy_import_form_submit($form, $form_state);
}