function royalslider_optionset_exists in RoyalSlider Integration 7
Checks whether an option set with the given name already exists.
1 call to royalslider_optionset_exists()
- royalslider_optionset_save in ./
royalslider.module - Saves the given optionset to the database. Set the $new flag if this optionset has not been written before.
1 string reference to 'royalslider_optionset_exists'
- royalslider_form_optionset_edit in ./
royalslider.admin.inc - Form builder; Form to edit a given option set.
File
- ./
royalslider.module, line 215 - RoyalSlider module.
Code
function royalslider_optionset_exists($optionset_name) {
ctools_include('export');
$optionset = ctools_export_crud_load('royalslider_optionset', $optionset_name);
return isset($optionset->name);
}