You are here

function mostpopular_interval_delete in Drupal Most Popular 7

1 call to mostpopular_interval_delete()
mostpopular_intervals_admin_form_submit in ./mostpopular.intervals.inc

File

./mostpopular.module, line 620
The main file for the Most Popular module.

Code

function mostpopular_interval_delete($interval) {

  // Delete the interval itself
  db_delete('mostpopular_interval')
    ->condition('iid', $interval->iid)
    ->execute();

  // Delete any cached items for this interval
  db_delete('mostpopular_item')
    ->condition('iid', $interval->iid)
    ->execute();
}