function flexslider_optionset_delete in Flex Slider 7.2
Same name and namespace in other branches
- 7 flexslider.module \flexslider_optionset_delete()
Deletes the given option set from the database.
Parameters
object|string $optionset: Optionset object or machine name
2 calls to flexslider_optionset_delete()
- FlexsliderTestCase::testOptionSetCrud in ./
flexslider.test - flexslider_optionset_form_delete_submit in ./
flexslider.admin.inc - Submit handler for deleting an option set.
File
- ./
flexslider.module, line 352 - A light-weight, customizable image gallery plugin for Drupal based on jQuery
Code
function flexslider_optionset_delete($optionset) {
if (!$optionset) {
return;
}
elseif (!isset($optionset->name)) {
$optionset = flexslider_optionset_load($optionset);
}
ctools_include('export');
ctools_export_crud_delete('flexslider_optionset', $optionset);
ctools_export_load_object_reset('flexslider_optionset');
}