Index: feedapi_node.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/feedapi/feedapi_node/Attic/feedapi_node.module,v retrieving revision 1.1.2.18.2.44 diff -u -r1.1.2.18.2.44 feedapi_node.module --- feedapi_node.module 30 Sep 2009 13:31:40 -0000 1.1.2.18.2.44 +++ feedapi_node.module 26 Oct 2009 15:32:27 -0000 @@ -167,7 +167,7 @@ switch ($type) { case 'processors': $ct_types = node_get_types(); - $ct_options = array(); + $ct_options = array('' => t('Select type')); if (is_array($ct_types)) { foreach ($ct_types as $key => $data) { if (!feedapi_enabled_type($key)) { @@ -175,20 +175,14 @@ } } } - if (array_key_exists('story', $ct_options)) { - $default_type = 'story'; - } - else { - $default_type = current(array_keys($ct_options)); - } $form['content_type'] = array( '#type' => 'select', '#title' => t('Node type of feed items'), - '#default_value' => $default_type, + '#default_value' => '', '#options' => $ct_options, '#description' => t('Choose the node type for feed item nodes created by this feed.'), ); - $format_options = array(); + $format_options = array(FILTER_FORMAT_DEFAULT => t('Default format')); $formats = filter_formats(); foreach ($formats as $format) { $format_options[$format->format] = $format->name;