$content[type] = array ( 'name' => 'Forum Topic', 'type' => 'topic', 'description' => 'Forum topics will show up on the forum page. Users can post comments to forum topics.', 'title_label' => 'Title', 'body_label' => 'Body', 'min_word_count' => '0', 'help' => '', 'node_options' => array ( 'status' => true, 'promote' => false, 'sticky' => false, 'revision' => false, ), 'comment' => '2', 'upload' => '1', 'excerpt' => '0', 'excerpt_wt' => '0', 'comment_talk' => 0, 'old_type' => 'topic', 'orig_type' => '', 'module' => 'node', 'custom' => '1', 'modified' => '1', 'locked' => '0', ); $content[fields] = array ( 0 => array ( 'widget_type' => 'options_select', 'label' => 'forum', 'weight' => '0', 'description' => 'Your group administrator may have defined a way for you to categorize your forum topics in a way that is appropriate for your group.', 'default_value_widget' => array ( 'field_forum' => array ( 'key' => '', ), ), 'default_value_php' => '', 'group' => false, 'required' => '0', 'multiple' => '0', 'text_processing' => '0', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => 'if (arg(0) == \'node\') { $values = array(); $group = og_get_group_context(); $node = node_load($group->nid); foreach($node->field_forums as $value) { $values[] = $value[\'value\']; } } return $values;', 'field_name' => 'field_forum', 'field_type' => 'text', 'module' => 'text, optionwidgets', 'default_value' => array ( 0 => array ( 'value' => '', ), ), ), );