function mostpopular_interval_delete in Drupal Most Popular 7
1 call to mostpopular_interval_delete()
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();
}