Skip to content

Instantly share code, notes, and snippets.

@Renrhaf
Created August 16, 2016 15:06
Show Gist options
  • Save Renrhaf/8e3fb7be7d7eaa2d4a78238299147c24 to your computer and use it in GitHub Desktop.
Save Renrhaf/8e3fb7be7d7eaa2d4a78238299147c24 to your computer and use it in GitHub Desktop.
AFOUND-816
diff --git a/foundation.make b/foundation.make
index d065c0e..f3a9152 100755
--- a/foundation.make
+++ b/foundation.make
@@ -380,6 +380,27 @@ projects[migrate_extras][patch][] = "http://drupal.org/files/migrate_extras_enti
projects[field_rename][version] = 1.0-beta1
projects[field_rename][subdir] = "contrib"
+; ======================= Feeds
+
+projects[feeds][version] = 2.0-beta2
+projects[feeds][subdir] = "contrib"
+
+projects[feeds_ftp_fetcher][download][type] = git
+projects[feeds_ftp_fetcher][download][revision] = 8efe88ba26a1e35f53bc09aeccec4071b26a997e
+projects[feeds_ftp_fetcher][download][branch] = 7.x-1.x
+projects[feeds_ftp_fetcher][subdir] = "contrib"
+
+projects[feeds_fetcher_directory][version] = 2.0-beta2
+projects[feeds_fetcher_directory][subdir] = "contrib"
+
+projects[job_scheduler][version] = 2.0-alpha3
+projects[job_scheduler][subdir] = "contrib"
+
+projects[scald_feeds][download][type] = git
+projects[scald_feeds][download][revision] = 775fd31375c494c528a6bbb0f574f62f9d6e2f96
+projects[scald_feeds][download][branch] = 7.x-1.x
+projects[scald_feeds][subdir] = "contrib"
+
; ======================= Other projects
projects[ldap][version] = 2.0-beta8
diff --git a/modules/custom/arte_afp/arte_afp.feeds_importer_default.inc b/modules/custom/arte_afp/arte_afp.feeds_importer_default.inc
index a15c977..fbc646e 100644
--- a/modules/custom/arte_afp/arte_afp.feeds_importer_default.inc
+++ b/modules/custom/arte_afp/arte_afp.feeds_importer_default.inc
@@ -42,66 +42,78 @@ function arte_afp_feeds_importer_default() {
'source' => 'NewsItemId',
'target' => 'guid',
'unique' => 1,
+ 'language' => 'und',
),
1 => array(
'source' => 'body',
'target' => 'body',
- 'unique' => FALSE,
+ 'format' => 'wysiwyg',
),
2 => array(
'source' => 'HeadLine',
'target' => 'title',
'unique' => FALSE,
+ 'language' => 'und',
),
3 => array(
'source' => 'Language',
'target' => 'language',
'unique' => FALSE,
+ 'language' => 'und',
),
4 => array(
'source' => 'ByLine',
'target' => 'field_afp_story_author',
'unique' => FALSE,
+ 'language' => 'und',
),
5 => array(
'source' => 'DateLine',
'target' => 'field_afp_story_place',
'unique' => FALSE,
+ 'language' => 'und',
),
6 => array(
'source' => 'categories',
'target' => 'field_afp_story_categories:tid',
'unique' => FALSE,
+ 'language' => 'und',
),
7 => array(
'source' => 'CopyrightLine',
'target' => 'field_afp_story_copyright',
'unique' => FALSE,
+ 'language' => 'und',
),
8 => array(
'source' => 'photoHrefphoto0',
'target' => 'field_afp_story_images',
'unique' => FALSE,
+ 'language' => 'und',
),
9 => array(
'source' => 'FirstCreated',
'target' => 'field_afp_story_creation_date:start',
'unique' => FALSE,
+ 'language' => 'und',
),
10 => array(
'source' => 'ThisRevisionCreated',
'target' => 'field_afp_story_update_date:start',
'unique' => FALSE,
+ 'language' => 'und',
),
11 => array(
'source' => 'NewsItemId',
'target' => 'field_afp_story_item_id',
'unique' => FALSE,
+ 'language' => 'und',
),
12 => array(
'source' => 'RevisionId',
'target' => 'field_afp_story_revision_id',
'unique' => FALSE,
+ 'language' => 'und',
),
),
'update_existing' => '2',
@@ -109,6 +121,8 @@ function arte_afp_feeds_importer_default() {
'input_format' => 'full_html',
'skip_hash_check' => 0,
'bundle' => 'afp_story',
+ 'insert_new' => 1,
+ 'language' => 'und',
),
),
'content_type' => 'afp_feed',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment