You are here

function royalslider_optionset_load in RoyalSlider Integration 7

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

4 calls to royalslider_optionset_load()
royalsliderfield_preprocess_royalsliderfield in contrib/royalsliderfield/royalsliderfield.module
Implements hook_preprocess_HOOK().
royalslider_add in ./royalslider.module
This function loads the required JavaScripts and settings for a RoyalSlider instance.
royalslider_preprocess_royalslider in theme/royalslider.theme.inc
Implements hook_preprocess_HOOK().
views_slideshow_royalslider_views_pre_render in contrib/views_slideshow_royalslider/views_slideshow_royalslider.module
Implements hook_views_prerender().

File

./royalslider.module, line 204
RoyalSlider module.

Code

function royalslider_optionset_load($optionset_name) {
  ctools_include('export');
  $optionset = ctools_export_crud_load('royalslider_optionset', $optionset_name);

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