You are here

function finder::choice_delete in Finder 7.2

Finder choice delete.

Delete the finder_choice table choices for this finder, or a particular element if an element object is passed in.

3 calls to finder::choice_delete()
finder::choice_repopulate in includes/finder.inc
Finder choice repopulate.
finder::delete in includes/finder.inc
Finder delete.
finder::delete_element in includes/finder.inc
Finder delete element.

File

includes/finder.inc, line 699
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 choice_delete($element = NULL) {
  $query = db_delete('finder_choice')
    ->condition('finder', $this->id);
  if (!empty($element)) {
    $query
      ->condition('element', $element->id);
  }
  $query
    ->execute();
}