$feeds_importer = new stdClass(); $feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */ $feeds_importer->api_version = 1; $feeds_importer->id = 'export_articles'; $feeds_importer->config = array( 'name' => 'export_articles', 'description' => 'export articles', 'fetcher' => array( 'plugin_key' => 'FeedsHTTPFetcher', 'config' => array( 'auto_detect_feeds' => 1, 'use_pubsubhubbub' => 0, 'designated_hub' => '', ), ), 'parser' => array( 'plugin_key' => 'FeedsXPathParserXML', 'config' => array( 'sources' => array( 'xpathparser:0' => 'Nid', 'xpathparser:1' => 'Uid', 'xpathparser:2' => 'article-title', 'xpathparser:3' => 'article-body', 'xpathparser:4' => 'Post-date', 'xpathparser:5' => 'article-path', 'xpathparser:9' => 'featured', 'xpathparser:10' => 'article-image', 'xpathparser:11' => 'category-article', 'xpathparser:12' => 'tags', ), 'rawXML' => array( 'xpathparser:3' => 'xpathparser:3', 'xpathparser:0' => 0, 'xpathparser:1' => 0, 'xpathparser:2' => 0, 'xpathparser:4' => 0, 'xpathparser:5' => 0, 'xpathparser:9' => 0, 'xpathparser:10' => 0, 'xpathparser:11' => 0, 'xpathparser:12' => 0, ), 'context' => '//node', 'exp' => array( 'errors' => 1, 'tidy' => 1, 'tidy_encoding' => 'UTF8', 'debug' => array( 'context' => 0, 'xpathparser:0' => 0, 'xpathparser:1' => 0, 'xpathparser:2' => 0, 'xpathparser:3' => 0, 'xpathparser:4' => 0, 'xpathparser:5' => 0, 'xpathparser:9' => 0, 'xpathparser:10' => 0, 'xpathparser:11' => 0, 'xpathparser:12' => 0, ), ), 'allow_override' => 1, ), ), 'processor' => array( 'plugin_key' => 'FeedsNodeProcessor', 'config' => array( 'content_type' => 'article', 'expire' => '-1', 'author' => '1', 'authorize' => 1, 'mappings' => array( 0 => array( 'source' => 'xpathparser:0', 'target' => 'nid', 'unique' => 1, ), 1 => array( 'source' => 'xpathparser:1', 'target' => 'uid', 'unique' => FALSE, ), 2 => array( 'source' => 'xpathparser:2', 'target' => 'title', 'unique' => FALSE, ), 3 => array( 'source' => 'xpathparser:3', 'target' => 'body', 'unique' => FALSE, ), 4 => array( 'source' => 'xpathparser:4', 'target' => 'created', 'unique' => FALSE, ), 5 => array( 'source' => 'xpathparser:5', 'target' => 'path_alias', 'unique' => FALSE, ), 6 => array( 'source' => 'xpathparser:6', 'target' => 'field_image', 'unique' => FALSE, ), 7 => array( 'source' => 'xpathparser:7', 'target' => 'field_category_article', 'unique' => FALSE, ), 8 => array( 'source' => 'xpathparser:8', 'target' => 'field_image', 'unique' => FALSE, ), 9 => array( 'source' => 'xpathparser:9', 'target' => 'field_freetagging', 'unique' => FALSE, ), ), 'update_existing' => '1', 'input_format' => 'full_html', 'skip_hash_check' => 1, ), ), 'content_type' => '', 'update' => 0, 'import_period' => '-1', 'expire_period' => 3600, 'import_on_create' => 1, 'process_in_background' => 0, );