You are here

function _feed_import_base_remove_running in Feed Import 7.3

Same name and namespace in other branches
  1. 8 feed_import_base/feed_import_base.module \_feed_import_base_remove_running()

Removes a feed from running array.

1 call to _feed_import_base_remove_running()
_feed_import_base_process_feed in feed_import_base/feed_import_base.module
Imports a feed.
1 string reference to '_feed_import_base_remove_running'
_feed_import_base_process_feed in feed_import_base/feed_import_base.module
Imports a feed.

File

feed_import_base/feed_import_base.module, line 240
Basic settings for feed import base module

Code

function _feed_import_base_remove_running($feed) {
  if (isset($feed->skip_remove_running)) {
    unset($feed->skip_remove_running);
    return;
  }
  $running = _feed_import_base_variable_get('feed_import_import_running', array());
  if (!empty($running[$feed->entity]) && ($pos = array_search($feed->machine_name, $running[$feed->entity])) !== FALSE) {
    unset($running[$feed->entity][$pos]);
    variable_set('feed_import_import_running', $running);
  }
}