public static function FeedImportSQLHashes::rescheduleAll in Feed Import 7.3
Reschedules all entities
Parameters
string $name: Feed machine name
int $ttl: Time to live
Overrides FeedImportStaticHashManager::rescheduleAll
File
- feed_import_base/
inc/ feed_import.inc, line 2027 - This file contains Feed Import helpers.
Class
- FeedImportSQLHashes
- This class implements SQL hash storage
Code
public static function rescheduleAll($name, $ttl) {
if ($ttl) {
$ttl += time();
}
db_update('feed_import_hashes')
->condition('feed_machine_name', $name)
->condition('expire', static::MARK_PROTECTED, '>')
->fields(array(
'expire' => $ttl,
))
->execute();
}