You are here

function finder::delete in Finder 7.2

Finder delete.

File

includes/finder.inc, line 275
finder.inc

Class

finder
An object to contain all of the data to generate a finder, plus the member functions to build the finder, and render the output.

Code

function delete($clear = TRUE) {
  $this
    ->choice_delete();
  db_delete('finder')
    ->condition('id', $this->id)
    ->execute();
  module_invoke_all('finder_delete', $this);
  if ($clear) {
    cache_clear_all();
    menu_rebuild();
  }
}