function _merci_inventory_install_create_merci_inventory_master_content_type in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2
Same name and namespace in other branches
- 6 modules/merci_inventory/includes/content_types/merci_inventory_master_content_type.inc \_merci_inventory_install_create_merci_inventory_master_content_type()
function to create Open Media Timeslot Theme CCK content type
1 call to _merci_inventory_install_create_merci_inventory_master_content_type()
- _merci_inventory_install_create_content_types in modules/
merci_inventory/ includes/ content_types/ content_types.inc - function to create CCK content types
File
- modules/
merci_inventory/ includes/ content_types/ merci_inventory_master_content_type.inc, line 12 - merci inventory content types installation
Code
function _merci_inventory_install_create_merci_inventory_master_content_type() {
$result = _merci_inventory_install_import_content_type("\$content[type] = array (\n 'name' => 'MERCI Inventory Master',\n 'type' => 'merci_inventory_master',\n 'description' => '',\n 'title_label' => 'Title',\n 'body_label' => 'Body',\n 'min_word_count' => '0',\n 'help' => '',\n 'node_options' =>\n array (\n 'status' => true,\n 'promote' => false,\n 'sticky' => false,\n 'revision' => false,\n ),\n 'creativecommons' => 0,\n 'old_type' => 'merci_inventory_master',\n 'orig_type' => '',\n 'module' => 'node',\n 'custom' => '1',\n 'modified' => '1',\n 'locked' => '0',\n 'og_content_type_usage' => 'omitted',\n 'comment' => '0',\n 'comment_default_mode' => '4',\n 'comment_default_order' => '1',\n 'comment_default_per_page' => '50',\n 'comment_controls' => '3',\n 'comment_anonymous' => 0,\n 'comment_subject_field' => '1',\n 'comment_preview' => '1',\n 'comment_form_location' => '0',\n 'merci_type_setting' => 'disabled',\n 'merci_reservation_status' => 1,\n 'merci_spare_items' => 0,\n 'merci_grouping' => 0,\n 'merci_max_hours_per_reservation' => 0,\n 'merci_allow_overnight' => 0,\n 'merci_allow_weekends' => 0,\n 'merci_rate_per_hour' => 0,\n 'merci_late_fee_per_hour' => 0,\n 'merci_fee_free_hours' => 0,\n 'merci_min_cancel_hours' => 0,\n 'merci_autocheckout' => 0,\n 'merci_autocheckin' => 0,\n 'merci_selfcheckout' => 0,\n 'ant' => '0',\n 'ant_pattern' => '',\n 'ant_php' => 0,\n);\n\$content[groups] = array (\n 0 =>\n array (\n 'label' => 'MERCI Inventory',\n 'group_type' => 'standard',\n 'settings' =>\n array (\n 'form' =>\n array (\n 'style' => 'fieldset',\n 'description' => '',\n ),\n 'display' =>\n array (\n 'description' => '',\n 'teaser' =>\n array (\n 'format' => 'fieldset',\n 'exclude' => 0,\n ),\n 'full' =>\n array (\n 'format' => 'fieldset',\n 'exclude' => 0,\n ),\n 4 =>\n array (\n 'format' => 'fieldset',\n 'exclude' => 0,\n ),\n 'token' =>\n array (\n 'format' => 'fieldset',\n 'exclude' => 0,\n ),\n 'label' => 'above',\n ),\n ),\n 'weight' => '-2',\n 'group_name' => 'group_merci_inventory',\n ),\n);\n\$content[fields] = array (\n 0 =>\n array (\n 'label' => 'Model',\n 'field_name' => 'field_merci_model',\n 'type' => 'text',\n 'widget_type' => 'text_textfield',\n 'change' => 'Change basic information',\n 'weight' => '-1',\n 'rows' => 5,\n 'size' => '60',\n 'description' => '',\n 'default_value' =>\n array (\n 0 =>\n array (\n 'value' => '',\n '_error_element' => 'default_value_widget][field_merci_model][0][value',\n ),\n ),\n 'default_value_php' => '',\n 'default_value_widget' => NULL,\n 'group' => 'group_merci_inventory',\n 'required' => 0,\n 'multiple' => '0',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => '',\n 'op' => 'Save field settings',\n 'module' => 'text',\n 'widget_module' => 'text',\n 'columns' =>\n array (\n 'value' =>\n array (\n 'type' => 'text',\n 'size' => 'big',\n 'not null' => false,\n 'sortable' => true,\n ),\n ),\n 'display_settings' =>\n array (\n 'label' =>\n array (\n 'format' => 'above',\n 'exclude' => 0,\n ),\n 'teaser' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'full' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 4 =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'token' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n ),\n 1 =>\n array (\n 'label' => 'Make',\n 'field_name' => 'field_merci_make',\n 'type' => 'text',\n 'widget_type' => 'text_textfield',\n 'change' => 'Change basic information',\n 'weight' => 0,\n 'rows' => 5,\n 'size' => '60',\n 'description' => '',\n 'default_value' =>\n array (\n 0 =>\n array (\n 'value' => '',\n '_error_element' => 'default_value_widget][field_merci_make][0][value',\n ),\n ),\n 'default_value_php' => '',\n 'default_value_widget' =>\n array (\n 'field_merci_make' =>\n array (\n 0 =>\n array (\n 'value' => '',\n '_error_element' => 'default_value_widget][field_merci_make][0][value',\n ),\n ),\n ),\n 'group' => 'group_merci_inventory',\n 'required' => 0,\n 'multiple' => '0',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => '',\n 'op' => 'Save field settings',\n 'module' => 'text',\n 'widget_module' => 'text',\n 'columns' =>\n array (\n 'value' =>\n array (\n 'type' => 'text',\n 'size' => 'big',\n 'not null' => false,\n 'sortable' => true,\n ),\n ),\n 'display_settings' =>\n array (\n 'label' =>\n array (\n 'format' => 'above',\n 'exclude' => 0,\n ),\n 'teaser' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'full' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 4 =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'token' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n ),\n 2 =>\n array (\n 'label' => 'Serial Number',\n 'field_name' => 'field_merci_serial_number',\n 'type' => 'text',\n 'widget_type' => 'text_textfield',\n 'change' => 'Change basic information',\n 'weight' => '1',\n 'rows' => 5,\n 'size' => '60',\n 'description' => '',\n 'default_value' =>\n array (\n 0 =>\n array (\n 'value' => '',\n '_error_element' => 'default_value_widget][field_merci_serial_number][0][value',\n ),\n ),\n 'default_value_php' => '',\n 'default_value_widget' =>\n array (\n 'field_merci_serial_number' =>\n array (\n 0 =>\n array (\n 'value' => '',\n '_error_element' => 'default_value_widget][field_merci_serial_number][0][value',\n ),\n ),\n ),\n 'group' => 'group_merci_inventory',\n 'required' => 0,\n 'multiple' => '0',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => '',\n 'op' => 'Save field settings',\n 'module' => 'text',\n 'widget_module' => 'text',\n 'columns' =>\n array (\n 'value' =>\n array (\n 'type' => 'text',\n 'size' => 'big',\n 'not null' => false,\n 'sortable' => true,\n ),\n ),\n 'display_settings' =>\n array (\n 'label' =>\n array (\n 'format' => 'above',\n 'exclude' => 0,\n ),\n 'teaser' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'full' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 4 =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'token' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n ),\n 3 =>\n array (\n 'label' => 'Inventory Code',\n 'field_name' => 'field_merci_inventory_code',\n 'type' => 'text',\n 'widget_type' => 'text_textfield',\n 'change' => 'Change basic information',\n 'weight' => '2',\n 'rows' => 5,\n 'size' => '60',\n 'description' => '',\n 'default_value' =>\n array (\n 0 =>\n array (\n 'value' => '',\n '_error_element' => 'default_value_widget][field_merci_inventory_code][0][value',\n ),\n ),\n 'default_value_php' => '',\n 'default_value_widget' =>\n array (\n 'field_merci_inventory_code' =>\n array (\n 0 =>\n array (\n 'value' => '',\n '_error_element' => 'default_value_widget][field_merci_inventory_code][0][value',\n ),\n ),\n ),\n 'group' => 'group_merci_inventory',\n 'required' => 0,\n 'multiple' => '0',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => '',\n 'op' => 'Save field settings',\n 'module' => 'text',\n 'widget_module' => 'text',\n 'columns' =>\n array (\n 'value' =>\n array (\n 'type' => 'text',\n 'size' => 'big',\n 'not null' => false,\n 'sortable' => true,\n ),\n ),\n 'display_settings' =>\n array (\n 'label' =>\n array (\n 'format' => 'above',\n 'exclude' => 0,\n ),\n 'teaser' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'full' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 4 =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'token' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n ),\n 4 =>\n array (\n 'label' => 'Warranty',\n 'field_name' => 'field_merci_warranty',\n 'type' => 'text',\n 'widget_type' => 'text_textfield',\n 'change' => 'Change basic information',\n 'weight' => '3',\n 'rows' => 5,\n 'size' => '60',\n 'description' => '',\n 'default_value' =>\n array (\n 0 =>\n array (\n 'value' => '',\n '_error_element' => 'default_value_widget][field_merci_warranty][0][value',\n ),\n ),\n 'default_value_php' => '',\n 'default_value_widget' =>\n array (\n 'field_merci_warranty' =>\n array (\n 0 =>\n array (\n 'value' => '',\n '_error_element' => 'default_value_widget][field_merci_warranty][0][value',\n ),\n ),\n ),\n 'group' => 'group_merci_inventory',\n 'required' => 0,\n 'multiple' => '0',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => '',\n 'op' => 'Save field settings',\n 'module' => 'text',\n 'widget_module' => 'text',\n 'columns' =>\n array (\n 'value' =>\n array (\n 'type' => 'text',\n 'size' => 'big',\n 'not null' => false,\n 'sortable' => true,\n ),\n ),\n 'display_settings' =>\n array (\n 'label' =>\n array (\n 'format' => 'above',\n 'exclude' => 0,\n ),\n 'teaser' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'full' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 4 =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'token' =>\n array (\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n ),\n);\n\$content[extra] = array (\n 'title' => '-5',\n 'body_field' => '-3',\n 'menu' => '-4',\n);\n");
return;
}