$content[type] = array ( 'name' => 'Display Test', 'type' => 'displaytest', 'description' => 'field display test', 'title_label' => 'Title', 'body_label' => '', 'min_word_count' => '0', 'help' => '', 'node_options' => 1, 'comment' => '0', 'nodewords' => 0, 'old_type' => 'displaytest', 'orig_type' => '', 'module' => 'node', 'custom' => '1', 'modified' => '1', 'locked' => '0', ); $content[groups] = array ( 0 => array ( 'label' => 'Group 1', 'settings' => array ( 'form' => array ( 'style' => 'fieldset', 'description' => '', ), 'display' => array ( 'description' => '', 'teaser' => NULL, 'full' => NULL, 'label' => NULL, ), ), 'weight' => '0', 'group_name' => 'group_group_1', ), ); $content[fields] = array ( 0 => array ( 'widget_type' => 'options_buttons', 'label' => 'control field 2', 'weight' => '-9', 'description' => '', 'default_value_widget' => array ( 'field_controlfield2' => array ( 'key' => 'no', ), ), 'default_value_php' => '', 'group' => 'group_group_1', 'required' => '0', 'multiple' => '0', 'min' => '', 'max' => '', 'prefix' => '', 'suffix' => '', 'allowed_values' => 'no do not display yes', 'allowed_values_php' => '', 'field_name' => 'field_controlfield2', 'field_type' => 'number_integer', 'module' => 'number, optionwidgets', 'dependent_options' => array ( 0 => 0, ), 'put_after_parent' => false, 'default_value' => array ( 0 => array ( 'value' => 'no', ), ), ), 1 => array ( 'widget_type' => 'options_onoff', 'label' => 'Field control 1', 'weight' => '-9', 'description' => 'no group, single no/yes text control of text field display.', 'default_value_widget' => array ( 'field_control1' => array ( 'keys' => 0, ), ), 'default_value_php' => '', 'group' => false, 'required' => '0', 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => 'no yes', 'allowed_values_php' => '', 'field_name' => 'field_control1', 'field_type' => 'text', 'module' => 'text, optionwidgets', 'dependent_options' => array ( 0 => 0, ), 'put_after_parent' => false, ), 2 => array ( 'widget_type' => 'text', 'label' => 'display field 1', 'weight' => '-8', 'rows' => '1', 'description' => '', 'default_value_widget' => array ( 'field_displayfield1' => array ( 0 => array ( 'value' => '', ), ), ), 'default_value_php' => '', 'group' => false, 'required' => '0', 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'field_name' => 'field_displayfield1', 'field_type' => 'text', 'module' => 'text', 'dependent_options' => array ( 0 => 1, ), 'put_after_parent' => '0', ), 3 => array ( 'widget_type' => 'text', 'label' => 'display field 2', 'weight' => '-8', 'rows' => '1', 'description' => 'field to be displayed.', 'default_value_widget' => array ( 'field_displayfield2' => array ( 0 => array ( 'value' => '', ), ), ), 'default_value_php' => '', 'group' => 'group_group_1', 'required' => '0', 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'field_name' => 'field_displayfield2', 'field_type' => 'text', 'module' => 'text', 'dependent_options' => array ( 0 => 4, ), 'put_after_parent' => '0', ), );