You are here

public function FeedsImporter::delete in Feeds 6

Same name and namespace in other branches
  1. 7.2 includes/FeedsImporter.inc \FeedsImporter::delete()
  2. 7 includes/FeedsImporter.inc \FeedsImporter::delete()

Delete configuration. Removes configuration information from database, does not delete configuration itself.

File

includes/FeedsImporter.inc, line 141
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_query("DELETE FROM {feeds_importer} WHERE id = '%s'", $this->id);
  $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);
  }
}