$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 = 'xml_news_importer'; $feeds_importer->config = array( 'name' => 'XML News Importer', 'description' => '', 'fetcher' => array( 'plugin_key' => 'FeedsHTTPFetcher', 'config' => array( 'auto_detect_feeds' => FALSE, 'use_pubsubhubbub' => FALSE, 'designated_hub' => '', 'request_timeout' => NULL, 'auto_scheme' => 'http', 'accept_invalid_cert' => FALSE, ), ), 'parser' => array( 'plugin_key' => 'FeedsExXml', 'config' => array( 'use_tidy' => 0, 'sources' => array( 'title' => array( 'name' => 'title', 'value' => 'title', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '0', ), 'start_date' => array( 'name' => 'start-date', 'value' => 'start-date/span', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '1', ), 'end_date' => array( 'name' => 'end-date', 'value' => 'end-date/span', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '2', ), 'image' => array( 'name' => 'image', 'value' => 'image/img/@src', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '3', ), 'body' => array( 'name' => 'body', 'value' => 'body', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '4', ), 'link' => array( 'name' => 'more-information-link', 'value' => 'more-information/a/@href', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '5', ), 'partner_website_title' => array( 'name' => 'more-information-title', 'value' => 'more-information', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '6', ), 'summary' => array( 'name' => 'summary', 'value' => 'summary', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '7', ), 'event_type' => array( 'name' => 'event-type', 'value' => 'event_type', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '8', ), 'audience' => array( 'name' => 'audience', 'value' => 'audience', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '9', ), 'price' => array( 'name' => 'price', 'value' => 'price', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '10', ), 'whats_included' => array( 'name' => 'whats-included', 'value' => 'whats-included', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '11', ), 'gallery' => array( 'name' => 'gallery', 'value' => 'gallery/img/@src', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '12', ), 'contact_details' => array( 'name' => 'contact-details', 'value' => 'contact-details', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '13', ), 'place' => array( 'name' => 'place', 'value' => 'place', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '14', ), 'meeting_point' => array( 'name' => 'meeting-point', 'value' => 'meeting-point', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '15', ), 'attachment_files' => array( 'name' => 'attachment-file-title', 'value' => 'attachment-files/span/a', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '16', ), 'attachment_file_link' => array( 'name' => 'attachment-file-link', 'value' => 'attachment-files/span/a/@href', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '17', ), 'spotlight_image' => array( 'name' => 'spotlight-image', 'value' => 'spotlight-image/img/@src', 'raw' => 0, 'inner' => 0, 'debug' => 0, 'weight' => '18', ), ), 'context' => array( 'value' => '/nodes/node', ), 'display_errors' => 1, 'source_encoding' => array( 0 => 'auto', ), 'debug_mode' => 0, ), ), 'processor' => array( 'plugin_key' => 'FeedsNodeProcessor', 'config' => array( 'expire' => '-1', 'author' => '1', 'authorize' => 1, 'mappings' => array( 0 => array( 'source' => 'title', 'target' => 'title', 'unique' => 1, 'language' => 'und', ), 1 => array( 'source' => 'body', 'target' => 'body', 'unique' => FALSE, 'language' => 'und', ), 2 => array( 'source' => 'partner_website_title', 'target' => 'field_link:title', 'unique' => FALSE, 'language' => 'und', ), 3 => array( 'source' => 'link', 'target' => 'field_link:url', 'unique' => FALSE, 'language' => 'und', ), 4 => array( 'source' => 'image', 'target' => 'field_image:uri', 'file_exists' => '3', 'language' => 'und', ), 5 => array( 'source' => 'gallery', 'target' => 'field_image_gallery:uri', 'unique' => FALSE, 'language' => 'und', ), 6 => array( 'source' => 'spotlight_image', 'target' => 'field_image_spotlight:uri', 'unique' => FALSE, 'language' => 'und', ), 7 => array( 'source' => 'summary', 'target' => 'field_summary', 'unique' => FALSE, 'language' => 'und', ), 8 => array( 'source' => 'attachment_files', 'target' => 'field_file:description', 'unique' => FALSE, 'language' => 'und', ), 9 => array( 'source' => 'attachment_file_link', 'target' => 'field_file:uri', 'unique' => FALSE, 'language' => 'und', ), ), 'insert_new' => '1', 'update_existing' => '1', 'update_non_existent' => 'skip', 'input_format' => 'rich_text', 'skip_hash_check' => 1, 'bundle' => 'news', 'language' => 'und', ), ), 'content_type' => '', 'update' => 0, 'import_period' => '86400', 'expire_period' => 3600, 'import_on_create' => 1, 'process_in_background' => 0, );