disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */ $feeds_importer->api_version = 1; $feeds_importer->id = 'feed'; $feeds_importer->config = array( 'name' => 'Feed', 'description' => 'Import RSS or Atom feeds, create nodes from feed items.', 'fetcher' => array( 'plugin_key' => 'FeedsHTTPFetcher', 'config' => array( 'auto_detect_feeds' => FALSE, 'use_pubsubhubbub' => FALSE, 'designated_hub' => '', ), ), 'parser' => array( 'plugin_key' => 'FeedsSyndicationParser', 'config' => array(), ), 'processor' => array( 'plugin_key' => 'FeedsNodeProcessor', 'config' => array( 'content_type' => 'feed_item', 'update_existing' => 0, 'expire' => '-1', 'mappings' => array( '0' => array( 'source' => 'title', 'target' => 'title', 'unique' => FALSE, ), '1' => array( 'source' => 'description', 'target' => 'body', 'unique' => FALSE, ), '2' => array( 'source' => 'timestamp', 'target' => 'created', 'unique' => FALSE, ), '3' => array( 'source' => 'url', 'target' => 'url', 'unique' => TRUE, ), '4' => array( 'source' => 'guid', 'target' => 'guid', 'unique' => TRUE, ), ), 'input_format' => 0, 'author' => 0, ), ), 'content_type' => 'feed', 'update' => 0, 'import_period' => '1800', 'expire_period' => 3600, 'import_on_create' => 1, ); $export['feed'] = $feeds_importer; $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 = 'opml'; $feeds_importer->config = array( 'name' => 'OPML import', 'description' => 'Import subscriptions from OPML files. Use together with "Feed" configuration.', 'fetcher' => array( 'plugin_key' => 'FeedsFileFetcher', 'config' => array( 'direct' => FALSE, ), ), 'parser' => array( 'plugin_key' => 'FeedsOPMLParser', 'config' => array(), ), 'processor' => array( 'plugin_key' => 'FeedsFeedNodeProcessor', 'config' => array( 'content_type' => 'feed', 'update_existing' => 0, 'mappings' => array( '0' => array( 'source' => 'title', 'target' => 'title', 'unique' => FALSE, ), '1' => array( 'source' => 'xmlurl', 'target' => 'source', 'unique' => 1, ), ), ), ), 'content_type' => '', 'update' => 0, 'import_period' => '-1', 'expire_period' => 3600, 'import_on_create' => 1, ); $export['opml'] = $feeds_importer; return $export; }