You are here

function closeblock_db_delete in Close Block 7

Delete the saved information from the db.

1 call to closeblock_db_delete()
closeblock_reset_submit in includes/closeblock.form.inc
Form submission handler for Reset button.

File

model/closeblock.db.inc, line 28
DB model functions.

Code

function closeblock_db_delete($params) {
  $query = db_delete('closeblock');
  if ($params) {
    foreach ($params as $param => $value) {
      if ($param == 'theme' && ($value == 'global' || empty($value))) {
        continue;
      }
      $query
        ->condition($param, $value, '=');
    }
  }
  $result = $query
    ->execute();
  return $result;
}