Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $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 = 'disqus_comments';
- $feeds_importer->config = array(
- 'name' => 'disqus comments',
- 'description' => '',
- 'fetcher' => array(
- 'plugin_key' => 'FeedsFileFetcher',
- 'config' => array(
- 'allowed_extensions' => 'txt csv tsv xml opml html htm',
- 'direct' => FALSE,
- 'directory' => 'private://feeds',
- 'allowed_schemes' => array(
- 0 => 'public',
- 1 => 'private',
- ),
- ),
- ),
- 'parser' => array(
- 'plugin_key' => 'FeedsXPathParserXML',
- 'config' => array(
- 'sources' => array(
- 'xpathparser:0' => 'thread/dsq:id',
- 'xpathparser:1' => 'post/dsq:id',
- 'xpathparser:2' => 'name',
- 'xpathparser:5' => 'email',
- 'xpathparser:6' => 'createdAt',
- 'xpathparser:7' => 'parent/dsq:id',
- 'xpathparser:8' => 'message',
- ),
- 'rawXML' => array(
- 'xpathparser:0' => 0,
- 'xpathparser:1' => 0,
- 'xpathparser:2' => 0,
- 'xpathparser:5' => 0,
- 'xpathparser:6' => 0,
- 'xpathparser:7' => 0,
- 'xpathparser:8' => 0,
- ),
- 'context' => '',
- 'exp' => array(
- 'errors' => 1,
- 'debug' => array(
- 'context' => 'context',
- 'xpathparser:0' => 'xpathparser:0',
- 'xpathparser:1' => 'xpathparser:1',
- 'xpathparser:2' => 'xpathparser:2',
- 'xpathparser:5' => 'xpathparser:5',
- 'xpathparser:6' => 'xpathparser:6',
- 'xpathparser:7' => 'xpathparser:7',
- 'xpathparser:8' => 'xpathparser:8',
- ),
- ),
- 'allow_override' => 1,
- ),
- ),
- 'processor' => array(
- 'plugin_key' => 'FeedsCommentProcessor',
- 'config' => array(
- 'mappings' => array(
- 0 => array(
- 'source' => 'xpathparser:0',
- 'target' => 'nid',
- 'unique' => FALSE,
- ),
- 1 => array(
- 'source' => 'xpathparser:1',
- 'target' => 'cid',
- 'unique' => FALSE,
- ),
- 2 => array(
- 'source' => 'xpathparser:2',
- 'target' => 'name',
- 'unique' => FALSE,
- ),
- 3 => array(
- 'source' => 'xpathparser:5',
- 'target' => 'user_mail',
- 'unique' => FALSE,
- ),
- 4 => array(
- 'source' => 'xpathparser:6',
- 'target' => 'created',
- 'unique' => FALSE,
- ),
- 5 => array(
- 'source' => 'xpathparser:7',
- 'target' => 'pid',
- 'unique' => FALSE,
- ),
- 6 => array(
- 'source' => 'xpathparser:8',
- 'target' => 'thread',
- 'unique' => FALSE,
- ),
- ),
- 'update_existing' => '0',
- 'update_non_existent' => 'skip',
- 'input_format' => 'plain_text',
- 'skip_hash_check' => 0,
- 'bundle' => 'comment_node_articles',
- 'expire' => '-1',
- 'author' => 0,
- 'authorize' => 0,
- ),
- ),
- 'content_type' => '',
- 'update' => 0,
- 'import_period' => 1800,
- 'expire_period' => 3600,
- 'import_on_create' => TRUE,
- 'process_in_background' => FALSE,
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement