$content[type] = array ( 'name' => 'Task', 'type' => 'task', 'description' => 'A DROP task, that can be claimed by a student.', 'title_label' => 'Task name', 'body_label' => 'Description of the task', 'min_word_count' => '0', 'help' => '', 'node_options' => array ( 'status' => true, 'promote' => true, 'sticky' => false, 'revision' => false, ), 'old_type' => 'task', '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' => 'Spotlight', 'field_name' => 'field_spotlight', 'type' => 'text', 'widget_type' => 'optionwidgets_onoff', 'change' => 'Change basic information', 'weight' => '-3', 'description' => 'Set this task as a spotlight, so the participants gets double points ', 'default_value_widget' => array ( 'field_spotlight' => array ( 0 => array ( 'value' => 0, '_error_element' => 'default_value_widget][field_spotlight][value', ), ), ), 'default_value_php' => '', 'required' => '0', 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '0| No 1| Spotlight!', 'allowed_values_php' => '', 'comment_cck_node' => 'task', 'comment_cck_field' => 'field_spotlight', 'comment_cck_node_field_spotlight' => true, 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, ), ), 'default_value' => array ( 0 => array ( 'value' => 0, '_error_element' => 'default_value_widget][field_spotlight][value', ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', ), 'full' => array ( 'format' => 'default', ), 4 => array ( 'format' => 'default', ), ), ), 1 => array ( 'label' => 'Status', 'field_name' => 'field_status', 'type' => 'text', 'widget_type' => 'optionwidgets_select', 'change' => 'Change basic information', 'weight' => '-2', 'description' => '', 'default_value_widget' => array ( 'field_status' => array ( 'value' => '', '_error_element' => 'default_value_widget][field_status][value', ), ), 'default_value_php' => '', 'required' => '1', 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => 'Open Claimed Closed', 'allowed_values_php' => '', 'comment_cck_node' => 'task', 'comment_cck_field' => 'field_status', 'comment_cck_node_field_status' => true, 'module' => 'text', 'widget_module' => 'optionwidgets', 'columns' => array ( 'value' => array ( 'type' => 'text', 'size' => 'big', 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', ), 'full' => array ( 'format' => 'default', ), 4 => array ( 'format' => 'default', ), ), ), 2 => array ( 'label' => 'Claimed by', 'field_name' => 'field_claimed', 'type' => 'userreference', 'widget_type' => 'userreference_autocomplete', 'change' => 'Change basic information', 'weight' => '-1', 'reverse_link' => 1, 'description' => 'Who claimed this task. Is empty only if the task is unclaimed. There are multiple fields so that group projects can be done.', 'default_value_widget' => array ( 'field_claimed' => array ( 0 => array ( 'uid' => array ( 'uid' => '', '_error_element' => 'default_value_widget][field_claimed][0][uid][uid', ), '_error_element' => 'default_value_widget][field_claimed][0][uid][uid', ), ), ), 'default_value_php' => '', 'required' => '0', 'multiple' => '1', 'referenceable_roles' => array ( 2 => false, ), 'referenceable_status' => array ( 1 => true, 0 => false, ), 'comment_cck_node' => 'task', 'comment_cck_field' => 'field_claimed', 'comment_cck_node_field_claimed' => true, 'module' => 'userreference', 'widget_module' => 'userreference', 'columns' => array ( 'uid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', ), 'full' => array ( 'format' => 'default', ), 4 => array ( 'format' => 'default', ), ), ), 3 => array ( 'label' => 'mentors', 'field_name' => 'field_mentors', 'type' => 'userreference', 'widget_type' => 'userreference_autocomplete', 'change' => 'Change basic information', 'weight' => '1', 'reverse_link' => 1, 'description' => 'The mentor of this task. May be blank.', 'default_value_widget' => array ( 'field_mentors' => array ( 0 => array ( 'uid' => array ( 'uid' => '', '_error_element' => 'default_value_widget][field_mentors][0][uid][uid', ), '_error_element' => 'default_value_widget][field_mentors][0][uid][uid', ), ), ), 'default_value_php' => '', 'required' => '0', 'multiple' => '1', 'referenceable_roles' => array ( 2 => false, ), 'referenceable_status' => array ( 1 => true, 0 => false, ), 'comment_cck_node' => 'task', 'comment_cck_field' => 'field_mentors', 'comment_cck_node_field_mentors' => true, 'module' => 'userreference', 'widget_module' => 'userreference', 'columns' => array ( 'uid' => array ( 'type' => 'int', 'unsigned' => true, 'not null' => false, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', ), 'full' => array ( 'format' => 'default', ), 4 => array ( 'format' => 'default', ), ), ), 4 => array ( 'label' => 'Drupal.org issue number', 'field_name' => 'field_drupalorg_issue', 'type' => 'number_integer', 'widget_type' => 'number', 'change' => 'Change basic information', 'weight' => '2', 'description' => 'Drupal.org issue number', 'default_value_widget' => array ( 'field_drupalorg_issue' => array ( 0 => array ( 'value' => '', '_error_element' => 'default_value_widget][field_drupalorg_issue][0][value', ), ), ), 'default_value_php' => '', 'required' => '0', 'multiple' => '0', 'min' => '', 'max' => '', 'prefix' => '#', 'suffix' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'comment_cck_node' => 'task', 'comment_cck_field' => 'field_drupalorg_issue', 'comment_cck_node_field_drupalorg_issue' => true, 'module' => 'number', 'widget_module' => 'number', 'columns' => array ( 'value' => array ( 'type' => 'int', 'not null' => false, 'sortable' => true, ), ), 'display_settings' => array ( 'label' => array ( 'format' => 'above', ), 'teaser' => array ( 'format' => 'default', ), 'full' => array ( 'format' => 'default', ), 4 => array ( 'format' => 'default', ), ), ), );