function royalslider_optionset_delete in RoyalSlider Integration 7
Deletes the given option set from the database.
Parameters
object|string $optionset: Optionset object or machine name
File
- ./
royalslider.module, line 283 - RoyalSlider module.
Code
function royalslider_optionset_delete($optionset) {
if (isset($optionset->name)) {
$name = $optionset->name;
}
else {
$name = $optionset;
}
db_delete('royalslider_optionset')
->condition('name', $name)
->execute();
}