You are here

function flexslider_optionset_load in Flex Slider 7.2

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

Fetches the given option set and returns it as an object or NULL, if no set could be found.

6 calls to flexslider_optionset_load()
FlexsliderTestCase::testOptionSetCrud in ./flexslider.test
FlexsliderTestCase::testOptionSetForm in ./flexslider.test
flexslider_add in ./flexslider.module
flexslider_fields_field_formatter_settings_summary in flexslider_fields/flexslider_fields.module
Implements hook_field_formatter_settings_summary().
flexslider_optionset_delete in ./flexslider.module
Deletes the given option set from the database.

... See full list

File

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

Code

function flexslider_optionset_load($optionset_name) {
  ctools_include('export');
  $optionset = ctools_export_crud_load('flexslider_optionset', $optionset_name);

  // Ensure the optionset is typecast after being loaded from DB
  _flexslider_typecast_optionset($optionset->options);
  return $optionset;
}