You are here

function slick_optionset_options in Slick Carousel 7.2

Same name and namespace in other branches
  1. 7.3 slick.module \slick_optionset_options()

Load all slick optionsets as select options.

Return value

array An array containing slick optionsets indexed by their names.

2 calls to slick_optionset_options()
slick_get_top_elements in includes/slick.admin.inc
Returns shared starting form elements across Slick field formatter and Views.
_slick_fields_field_formatter_settings_form in slick_fields/includes/slick_fields.formatters.admin.inc
Off-loaded hook_field_formatter_settings_form().

File

includes/slick.admin.inc, line 122
Contains optional functions called only if needed by admin pages.

Code

function slick_optionset_options() {
  $optionsets =& drupal_static(__FUNCTION__, NULL);
  if (!isset($optionsets)) {
    $optionsets = array();
    $slicks = slick_optionset_load_all();
    foreach ($slicks as $key => $optionset) {
      $optionsets[$key] = check_plain($optionset->label);
    }
    asort($optionsets);
  }
  return $optionsets;
}