$content[type] = array ( 'name' => 'Tournament', 'type' => 'tournament', 'description' => 'An individual tournament.', 'title_label' => 'Name', 'body_label' => '', 'min_word_count' => '0', 'help' => '', 'node_options' => array ( 'status' => true, 'promote' => true, 'sticky' => false, 'revision' => false, ), 'comment' => '2', 'old_type' => 'tournament', 'orig_type' => '', 'module' => 'node', 'custom' => '1', 'modified' => '1', 'locked' => '0', 'ant' => 0, 'ant_pattern' => '', 'ant_php' => 0, ); $content[fields] = array ( 0 => array ( 'widget_type' => 'date_popup', 'label' => 'Date', 'weight' => '-1', 'default_value' => 'now', 'default_value_code' => '', 'default_value2' => 'strtotime', 'default_value_code2' => '+1 hour', 'input_format' => 'm/d/Y h:i:sA', 'input_format_custom' => '', 'year_range' => '-3:+3', 'increment' => '15', 'advanced' => array ( 'label_position' => 'above', 'text_parts' => array ( 'year' => 0, 'month' => 0, 'day' => 0, 'hour' => 0, 'minute' => 0, 'second' => 0, ), ), 'description' => '', 'group' => false, 'required' => '0', 'multiple' => '0', 'repeat' => 0, 'todate' => 'optional', 'granularity' => array ( 'year' => true, 'month' => true, 'day' => true, 'hour' => true, 'minute' => true, 0 => 1, 'second' => false, ), 'output_format_date' => 'l, F j, Y - g:ia', 'output_format_custom' => '', 'output_format_date_long' => 'l, F j, Y - g:ia', 'output_format_custom_long' => '', 'output_format_date_medium' => 'D, d/m/Y - g:ia', 'output_format_custom_medium' => '', 'output_format_date_short' => 'd/m/Y - g:ia', 'output_format_custom_short' => '', 'tz_handling' => 'site', 'timezone_db' => 'UTC', 'field_name' => 'field_date', 'field_type' => 'date', 'module' => 'date', 'label_position' => 'above', 'text_parts' => array ( ), ), 1 => array ( 'widget_type' => 'flickrfield', 'label' => 'Picture', 'weight' => '0', 'description' => '', 'default_value_widget' => array ( 'flickr' => array ( 'field_0' => array ( 'field_picture' => array ( 0 => array ( 'type' => '', 'id' => '', 'nsid' => '72965451@N00', ), ), ), ), ), 'default_value_php' => '', 'group' => false, 'required' => '0', 'multiple' => '0', 'field_name' => 'field_picture', 'field_type' => 'flickrfield', 'module' => 'flickrfield', ), 2 => array ( 'widget_type' => 'text', 'label' => 'Description', 'weight' => '1', 'rows' => '6', 'description' => '', 'default_value_widget' => array ( 'field_description' => array ( 0 => array ( 'value' => '', ), ), ), 'field_description' => array ( 0 => array ( 'format' => 1, ), ), 'default_value_php' => '', 'group' => false, 'required' => '0', 'multiple' => '0', 'text_processing' => '1', 'max_length' => '', 'allowed_values' => '', 'allowed_values_php' => '', 'field_name' => 'field_description', 'field_type' => 'text', 'module' => 'text', ), 3 => array ( 'widget_type' => 'computed', 'label' => 'Results', 'weight' => '10', 'description' => '', 'group' => false, 'required' => '0', 'multiple' => '0', 'code' => '$node_field[\'value\'] = $node->field_date[0];', 'display' => '$node_field[\'value\'] = $node->field_date[0];', 'display_format' => '$args = array($node_field_item[\'value\']); $view = views_get_view(\'tournament_results\'); $display = views_build_view(\'embed\', $view , $args, $view->use_pager, $view->nodes_per_page); ', 'store' => 0, 'data_type' => 'varchar', 'data_length' => '', 'data_default' => '', 'data_not_null' => 0, 'data_sortable' => 1, 'field_name' => 'field_tournament_results', 'field_type' => 'computed', 'module' => 'computed_field', ), );