$content['type'] = array ( 'name' => 'Test Optionwidgets', 'type' => 'type_test_optionwidgets', 'description' => '', 'title_label' => 'Title', 'body_label' => '', 'min_word_count' => '0', 'help' => '', 'node_options' => array ( 'status' => true, 'promote' => true, 'sticky' => false, 'revision' => false, ), 'language_content_type' => 0, 'show_preview_changes' => true, 'old_type' => 'type_test_optionwidgets', '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', 'ant' => 0, 'ant_pattern' => '', 'ant_php' => '', ); $content['fields'] = array ( 0 => array ( 'label' => 'test buttons (checkboxes)', 'field_name' => 'field_test_buttons_checkboxes', 'type' => 'number_integer', 'widget_type' => 'optionwidgets_buttons', 'change' => 'Change basic information', 'weight' => '8', 'description' => '', 'default_value' => array ( 0 => array ( 'value' => NULL, '_error_element' => 'default_value_widget][field_test_buttons_checkboxes][value', ), ), 'default_value_php' => '', 'default_value_widget' => NULL, 'required' => 0, 'multiple' => '1', 'min' => '', 'max' => '', 'prefix' => '', 'suffix' => '', 'allowed_values' => '0|zero 1|one 2|two 3|three', 'allowed_values_php' => '', 'op' => 'Save field settings', 'module' => 'number', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'int', 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'weight' => '8', 'parent' => 'group_number', 'label' => array ( 'format' => 'above', ), '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, ), ), ), );