You are here

function slickgrid_delete_settings in Slickgrid 7

Same name and namespace in other branches
  1. 6 slickgrid.module \slickgrid_delete_settings()
1 call to slickgrid_delete_settings()
slickgrid_user_delete in ./slickgrid.module
Implements hook_user_delete()

File

./slickgrid.module, line 353

Code

function slickgrid_delete_settings($conditions = array()) {
  if (count($conditions)) {
    $query = db_delete('slickgrid');
    foreach ($conditions as $field => $condition) {
      $query
        ->condition($field, $condition);
    }
    return $query
      ->execute();
  }
  return false;
}