public function FeedsImporter::delete in Feeds 7
Same name and namespace in other branches
- 6 includes/FeedsImporter.inc \FeedsImporter::delete()
- 7.2 includes/FeedsImporter.inc \FeedsImporter::delete()
Delete configuration. Removes configuration information from database, does not delete configuration itself.
File
- includes/
FeedsImporter.inc, line 130 - FeedsImporter class and related.
Class
- FeedsImporter
- A FeedsImporter object describes how an external source should be fetched, parsed and processed. Feeds can manage an arbitrary amount of importers.
Code
public function delete() {
db_delete('feeds_importer')
->condition('id', $this->id)
->execute();
$job = array(
'callback' => 'feeds_importer_expire',
'type' => $this->id,
'id' => 0,
);
if ($this->export_type & EXPORT_IN_CODE) {
feeds_reschedule($this->id);
}
else {
job_scheduler()
->remove($job);
}
}