You are here

public function MostPopularInterval::remove in Drupal Most Popular 6

Same name and namespace in other branches
  1. 7 classes/intervals.php \MostPopularInterval::remove()

Removes this interval from the database.

File

classes/intervals.php, line 108
Defines a wrapper for the mostpopular_intervals table.

Class

MostPopularInterval
@file Defines a wrapper for the mostpopular_intervals table.

Code

public function remove() {
  if ($this->iid > 0) {
    $sql = 'DELETE FROM {' . self::$table . '} WHERE iid = %d';
    db_query($sql, $this->iid);
  }
}