You are here

function _royalslider_optionsets in RoyalSlider Integration 7

Return an array of RoyalSlider Option Sets. It's used to populate select form items.

Return value

array An array of Option Set titles, keyed by machine name.

6 calls to _royalslider_optionsets()
royalsliderfield_field_formatter_info in contrib/royalsliderfield/royalsliderfield.module
Implements hook_field_formatter_info().
royalsliderfield_field_formatter_settings_form in contrib/royalsliderfield/royalsliderfield.module
Implements hook_field_formatter_settings_form().
royalsliderfield_field_formatter_settings_summary in contrib/royalsliderfield/royalsliderfield.module
Implements hook_field_formatter_settings_summary().
royalslider_field_formatter_settings_form in ./royalslider.module
Implements hook_field_formatter_settings_form().
royalslider_field_formatter_settings_summary in ./royalslider.module
Implements hook_field_formatter_settings_summary().

... See full list

File

./royalslider.module, line 741
RoyalSlider module.

Code

function _royalslider_optionsets() {
  $optionsets = array();
  foreach (royalslider_optionset_load_all() as $name => $info) {
    $optionsets[$name] = $info->title;
  }
  return $optionsets;
}