From 7386e8d8dbd7737533f9814821a5954fcf0d97c0 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Thu, 30 Sep 2010 17:45:48 +0000
Subject: [PATCH] Cleanup remainder of 'import on create' to 'import on
 submission' renaming.

---
 feeds_ui/feeds_ui.admin.inc      | 2 +-
 includes/FeedsImporter.inc       | 2 +-
 tests/feeds_mapper_locale.test   | 2 +-
 tests/feeds_mapper_taxonomy.test | 2 +-
 tests/feeds_scheduler.test       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/feeds_ui/feeds_ui.admin.inc b/feeds_ui/feeds_ui.admin.inc
index b5a8a918..e06f9482 100644
--- a/feeds_ui/feeds_ui.admin.inc
+++ b/feeds_ui/feeds_ui.admin.inc
@@ -328,7 +328,7 @@ function feeds_ui_edit_page($importer, $active = 'help', $plugin_key = '') {
     $import_period = t('every !interval', array('!interval' => format_interval($importer->config['import_period'])));
   }
   $items[] = t('Refresh: !import_period', array('!import_period' => $import_period));
-  $items[] = $importer->config['import_on_create'] ? t('Import on create') : t('Do not import on create');
+  $items[] = $importer->config['import_on_create'] ? t('Import on submission') : t('Do not import on submission');
 
   $info['title'] = t('Basic settings');
   $info['body'] = array(
diff --git a/includes/FeedsImporter.inc b/includes/FeedsImporter.inc
index af5bb18b..9d4f8b64 100644
--- a/includes/FeedsImporter.inc
+++ b/includes/FeedsImporter.inc
@@ -231,7 +231,7 @@ class FeedsImporter extends FeedsConfigurable {
       'update' => 0,
       'import_period' => 1800, // Refresh every 30 minutes by default.
       'expire_period' => 3600, // Expire every hour by default, this is a hidden setting.
-      'import_on_create' => TRUE, // Import on create.
+      'import_on_create' => TRUE, // Import on submission.
     );
   }
 
diff --git a/tests/feeds_mapper_locale.test b/tests/feeds_mapper_locale.test
index 2015b922..d4eeb64b 100644
--- a/tests/feeds_mapper_locale.test
+++ b/tests/feeds_mapper_locale.test
@@ -103,7 +103,7 @@ class FeedsMapperLocaleTestCase extends FeedsMapperTestCase {
       'import_on_create' => FALSE,
     );
     $this->drupalPost('admin/structure/feeds/edit/syndication/settings', $edit, 'Save');
-    $this->assertText('Do not import on create');
+    $this->assertText('Do not import on submission');
     $nid = $this->createFeedNode();
     $edit = array(
       'language' => 'zh-hans',
diff --git a/tests/feeds_mapper_taxonomy.test b/tests/feeds_mapper_taxonomy.test
index 339e2d8a..ca5e032e 100644
--- a/tests/feeds_mapper_taxonomy.test
+++ b/tests/feeds_mapper_taxonomy.test
@@ -98,7 +98,7 @@ class FeedsMapperTaxonomyTestCase extends FeedsMapperTestCase {
       'import_on_create' => FALSE,
     );
     $this->drupalPost('admin/structure/feeds/edit/syndication/settings', $edit, 'Save');
-    $this->assertText('Do not import on create');
+    $this->assertText('Do not import on submission');
     $nid = $this->createFeedNode();
     $terms = array('testterm1', 'testterm2', 'testterm3');
     $edit = array(
diff --git a/tests/feeds_scheduler.test b/tests/feeds_scheduler.test
index 4f111435..ad522881 100644
--- a/tests/feeds_scheduler.test
+++ b/tests/feeds_scheduler.test
@@ -63,7 +63,7 @@ class FeedsSchedulerTestCase extends FeedsWebTestCase {
       'import_on_create' => FALSE,
     );
     $this->drupalPost('admin/structure/feeds/edit/syndication/settings', $edit, 'Save');
-    $this->assertText('Do not import on create');
+    $this->assertText('Do not import on submission');
 
     $nids = $this->createFeedNodes();
     // This implicitly tests the import_on_create node setting being 0.
-- 
GitLab