You are here

function flexslider_optionset_load_all in Flex Slider 7.2

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

Fetches all option sets from the database and returns them as an associative array.

4 calls to flexslider_optionset_load_all()
FlexsliderTestCase::testOptionSetCrud in ./flexslider.test
flexslider_fields_field_formatter_settings_form in flexslider_fields/flexslider_fields.module
Implements hook_field_formatter_settings_form().
flexslider_update_7200 in ./flexslider.install
Migrate settings from FlexSlider v1 to v2
flexslider_views_plugin_style_flexslider::options_form in flexslider_views/flexslider_views_plugin_style_flexslider.inc
Show a form to edit the style options.

File

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

Code

function flexslider_optionset_load_all() {
  ctools_include('export');
  $optionsets = ctools_export_crud_load_all('flexslider_optionset');
  foreach ($optionsets as $optionset) {

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