You are here

example_user_importer.txt in Flickr 7

$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 = 'flickr_user_feed';
$feeds_importer->config = array(
  'name' => 'Flickr user feed',
  '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' => 'FlickrFeedsParser',
    'config' => array(),
  ),
  'processor' => array(
    'plugin_key' => 'FeedsNodeProcessor',
    'config' => array(
      'expire' => '-1',
      'author' => 0,
      'authorize' => 0,
      'mappings' => array(
        0 => array(
          'source' => 'title',
          'target' => 'title',
          'unique' => 0,
        ),
        1 => array(
          'source' => 'link',
          'target' => 'field_link',
          'unique' => FALSE,
        ),
        2 => array(
          'source' => 'media',
          'target' => 'field_media',
          'unique' => FALSE,
        ),
        3 => array(
          'source' => 'media',
          'target' => 'guid',
          'unique' => 1,
        ),
        4 => array(
          'source' => 'date_taken',
          'target' => 'field_date_taken:start',
          'unique' => FALSE,
        ),
        5 => array(
          'source' => 'description',
          'target' => 'body',
          'format' => 'full_html',
        ),
        6 => array(
          'source' => 'published',
          'target' => 'created',
          'unique' => FALSE,
        ),
        7 => array(
          'source' => 'author',
          'target' => 'field_author',
          'unique' => FALSE,
        ),
        8 => array(
          'source' => 'author_id',
          'target' => 'field_author_id',
          'unique' => FALSE,
        ),
        9 => array(
          'source' => 'tags',
          'target' => 'field_terms',
          'unique' => FALSE,
        ),
      ),
      'update_existing' => '2',
      'update_non_existent' => 'skip',
      'input_format' => 'full_html',
      'skip_hash_check' => 0,
      'bundle' => 'flickr_user_feed_item',
    ),
  ),
  'content_type' => 'flickr_user_feed',
  'update' => 0,
  'import_period' => '43200',
  'expire_period' => 3600,
  'import_on_create' => 1,
  'process_in_background' => 0,
);

File

feeds/example_user_importer.txt
View source
  1. $feeds_importer = new stdClass();
  2. $feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */
  3. $feeds_importer->api_version = 1;
  4. $feeds_importer->id = 'flickr_user_feed';
  5. $feeds_importer->config = array(
  6. 'name' => 'Flickr user feed',
  7. 'description' => '',
  8. 'fetcher' => array(
  9. 'plugin_key' => 'FeedsHTTPFetcher',
  10. 'config' => array(
  11. 'auto_detect_feeds' => FALSE,
  12. 'use_pubsubhubbub' => FALSE,
  13. 'designated_hub' => '',
  14. 'request_timeout' => NULL,
  15. 'auto_scheme' => 'http',
  16. 'accept_invalid_cert' => FALSE,
  17. ),
  18. ),
  19. 'parser' => array(
  20. 'plugin_key' => 'FlickrFeedsParser',
  21. 'config' => array(),
  22. ),
  23. 'processor' => array(
  24. 'plugin_key' => 'FeedsNodeProcessor',
  25. 'config' => array(
  26. 'expire' => '-1',
  27. 'author' => 0,
  28. 'authorize' => 0,
  29. 'mappings' => array(
  30. 0 => array(
  31. 'source' => 'title',
  32. 'target' => 'title',
  33. 'unique' => 0,
  34. ),
  35. 1 => array(
  36. 'source' => 'link',
  37. 'target' => 'field_link',
  38. 'unique' => FALSE,
  39. ),
  40. 2 => array(
  41. 'source' => 'media',
  42. 'target' => 'field_media',
  43. 'unique' => FALSE,
  44. ),
  45. 3 => array(
  46. 'source' => 'media',
  47. 'target' => 'guid',
  48. 'unique' => 1,
  49. ),
  50. 4 => array(
  51. 'source' => 'date_taken',
  52. 'target' => 'field_date_taken:start',
  53. 'unique' => FALSE,
  54. ),
  55. 5 => array(
  56. 'source' => 'description',
  57. 'target' => 'body',
  58. 'format' => 'full_html',
  59. ),
  60. 6 => array(
  61. 'source' => 'published',
  62. 'target' => 'created',
  63. 'unique' => FALSE,
  64. ),
  65. 7 => array(
  66. 'source' => 'author',
  67. 'target' => 'field_author',
  68. 'unique' => FALSE,
  69. ),
  70. 8 => array(
  71. 'source' => 'author_id',
  72. 'target' => 'field_author_id',
  73. 'unique' => FALSE,
  74. ),
  75. 9 => array(
  76. 'source' => 'tags',
  77. 'target' => 'field_terms',
  78. 'unique' => FALSE,
  79. ),
  80. ),
  81. 'update_existing' => '2',
  82. 'update_non_existent' => 'skip',
  83. 'input_format' => 'full_html',
  84. 'skip_hash_check' => 0,
  85. 'bundle' => 'flickr_user_feed_item',
  86. ),
  87. ),
  88. 'content_type' => 'flickr_user_feed',
  89. 'update' => 0,
  90. 'import_period' => '43200',
  91. 'expire_period' => 3600,
  92. 'import_on_create' => 1,
  93. 'process_in_background' => 0,
  94. );