$content['type'] = array ( 'name' => 'testfromto', 'type' => 'testfromto', 'description' => 'Test date', 'title_label' => 'Title', 'body_label' => 'Body', 'min_word_count' => '0', 'help' => '', 'node_options' => array ( 'status' => true, 'promote' => true, 'sticky' => false, 'revision' => false, ), 'show_preview_changes' => true, 'old_type' => 'testfromto', 'orig_type' => '', 'module' => 'node', 'custom' => '1', 'modified' => '1', 'locked' => '0', 'comment' => '2', 'comment_default_mode' => '4', 'comment_default_order' => '1', 'comment_default_per_page' => '50', 'comment_controls' => '3', 'comment_anonymous' => 0, 'comment_subject_field' => '1', 'comment_preview' => '1', 'comment_form_location' => '0', ); $content['fields'] = array ( 0 => array ( 'label' => 'FromToDate', 'field_name' => 'field_fromtodate', 'type' => 'date', 'widget_type' => 'date_select', 'change' => 'Change basic information', 'weight' => '1', 'default_value' => 'blank', 'default_value2' => 'blank', 'default_value_code' => '', 'default_value_code2' => '', 'input_format' => 'm/d/Y - H:i:s', 'input_format_custom' => 'Y', 'year_range' => '-3:+3', 'increment' => '1', 'advanced' => array ( 'label_position' => 'above', 'text_parts' => array ( 'year' => 0, 'month' => 0, 'day' => 0, 'hour' => 0, 'minute' => 0, 'second' => 0, ), ), 'label_position' => 'above', 'text_parts' => array ( ), 'description' => '', 'required' => 0, 'multiple' => '0', 'repeat' => 0, 'todate' => 'optional', 'granularity' => array ( 'year' => 'year', ), 'default_format' => 'medium', 'tz_handling' => 'none', 'timezone_db' => '', 'op' => 'Save field settings', 'module' => 'date', 'widget_module' => 'date', 'columns' => array ( 'value' => array ( 'type' => 'varchar', 'length' => 20, 'not null' => false, 'sortable' => true, 'views' => true, ), 'value2' => array ( 'type' => 'varchar', 'length' => 20, 'not null' => false, 'sortable' => true, 'views' => false, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', 'exclude' => 0, ), 'teaser' => array ( 'format' => 'default', 'exclude' => 0, ), 'full' => array ( 'format' => 'default', 'exclude' => 0, ), 4 => array ( 'format' => 'default', 'exclude' => 0, ), 2 => array ( 'format' => 'default', 'exclude' => 0, ), 3 => array ( 'format' => 'default', 'exclude' => 0, ), ), ), ); $content['extra'] = array ( 'title' => '-5', 'body_field' => '0', 'menu' => '-2', );