You are here

function flexslider_optionset_exists in Flex Slider 7.2

Same name and namespace in other branches
  1. 7 flexslider.module \flexslider_optionset_exists()

Checks whether an option set with the given name already exists.

2 calls to flexslider_optionset_exists()
FlexsliderTestCase::testOptionSetCrud in ./flexslider.test
flexslider_optionset_save in ./flexslider.module
Saves the given option set to the database. Set the $new flag if this set has not been written before.
1 string reference to 'flexslider_optionset_exists'
flexslider_form_optionset_edit in ./flexslider.admin.inc
Form builder; Form to edit a given option set.

File

./flexslider.module, line 288
A light-weight, customizable image gallery plugin for Drupal based on jQuery

Code

function flexslider_optionset_exists($optionset_name) {
  ctools_include('export');
  $optionset = ctools_export_crud_load('flexslider_optionset', $optionset_name);
  return isset($optionset->name);
}