public static function FeedImport::deleteFeed in Feed Import 8
Deletes a feed.
Parameters
object $feed: Feed info
bool $hashes: Also remove hashes
1 call to FeedImport::deleteFeed()
- DeleteFeedForm::submitForm in src/
Form/ DeleteFeedForm.php - Form submission handler.
File
- feed_import_base/
src/ FeedImport.php, line 261
Class
- FeedImport
- This class provides helper functions for feed import.
Namespace
Drupal\feed_import_baseCode
public static function deleteFeed($feed, $hashes = TRUE) {
db_delete('feed_import_settings')
->condition('machine_name', $feed->machine_name)
->execute();
if ($hashes && isset($feed->settings['hashes']['class'])) {
$class = $feed->settings['hashes']['class'];
$class::deleteByFeed($feed->machine_name);
}
}