Reset import schedule after deleting.
authorAlex Barth
Tue, 4 May 2010 21:05:46 +0000 (21:05 +0000)
committerAlex Barth
Tue, 4 May 2010 21:05:46 +0000 (21:05 +0000)
CHANGELOG.txt
feeds.pages.inc

index 57ab0cd..1ba254b 100644 (file)
@@ -3,6 +3,7 @@
 Feeds 6.x 1.0 xxxxxxxxxxxxxxxxxxxx
 ----------------------------------
 
+- alex_b: Reset import schedule after deleting items from feed.
 - #653412 rbrandon: Do not create items older than expiry time.
 - #725392 nicholasThompson: FeedsBatch does not check feeds folder exists before
   uploading.
index 940a55d..9dfeb25 100644 (file)
@@ -137,6 +137,8 @@ function feeds_delete_tab_form(&$form_state, $importer_id, $node = NULL) {
 function feeds_delete_tab_form_submit($form, &$form_state) {
   $form_state['redirect'] = $form['#redirect'];
   feeds_batch_set(t('Deleting'), 'clear', $form['#importer_id'], empty($form['#feed_nid']) ? 0 : $form['#feed_nid']);
+  // Reset import schedule.
+  feeds_scheduler()->add($form['#importer_id'], 'import');
 }
 
 /**