? feeds-652180-2.patch Index: plugins/FeedsNodeProcessor.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/feeds/plugins/FeedsNodeProcessor.inc,v retrieving revision 1.22 diff -r1.22 FeedsNodeProcessor.inc 24a25,40 > // The user id to assign to FeedItems. > $feed_item_uid = 0; > // If Importer is not attached to a Content type or inherit author not set assign user > // based on the explicit author setting. > if (($source->feed_nid == '0') || $this->config['inherit_author'] == 0) { > // Load the user object based on the user name > $assigned_user = user_load(array('name' => $this->config['explicit_author'])); > $feed_item_uid = $assigned_user->uid; > } > // If Importer is attached to a Content type check whether user asked for Feed Items to > // inherit from Feed node author. > elseif ($this->config['inherit_author'] == 1) { > $author_source_node = node_load((int)$source->feed_nid); > $feed_item_uid = $author_source_node->uid; > } > 49c65 < --- > 67d82 < $node->uid = 0; 68a84 > $node->uid = $feed_item_uid; 167a184,185 > 'explicit_author' => 'anonymous', > 'inherit_author' => 1, 198a217,234 > $form['node_author'] = array( > '#type' => 'fieldset', > '#title' => t('Feed Results Author'), > ); > $form['node_author']['explicit_author'] = array( > '#type' => 'textfield', > '#title' => t('Author for created nodes'), > '#description' => t('Explicitly set the user that will be set as author of nodes'), > '#autocomplete_path' => 'user/autocomplete', > '#default_value' => $this->config['explicit_author'], > ); > $form['node_author']['inherit_author'] = array( > '#type' => 'checkbox', > '#title' => t('Inherit from node'), > '#description' => t('Inherit author from node Feed is attached to (only applicable if Importer attached to Content type)'), > '#default_value' => $this->config['inherit_author'], > ); >