function imagefield_crop_variants_delete_multiple in Imagefield Crop 7.3
Helper function imagefield_crop_variants_delete_multiple(). Used to load multiple variants.
Parameters
$pids:
Return value
mixed
1 call to imagefield_crop_variants_delete_multiple()
- imagefield_crop_field_delete in ./
imagefield_crop.module - Implements hook_field_delete().
File
- ./
imagefield_crop.module, line 1268
Code
function imagefield_crop_variants_delete_multiple($cvids = array(), $fid = '', $vid = '', $pids = array()) {
$query = db_delete('imagefield_crop_variants');
if (!empty($fid)) {
$query
->condition('source_fid', $fid);
}
if (!empty($cvids)) {
$query
->condition('pid', $pids);
}
if (!empty($pids)) {
$query
->condition('pid', $pids);
}
if (!empty($vid)) {
$query
->condition('vid', $vid);
}
$result = $query
->execute();
return $result;
}