function royalslider_optionset_load_all in RoyalSlider Integration 7
Fetches all option sets from the database and returns them as an associative array.
1 call to royalslider_optionset_load_all()
- _royalslider_optionsets in ./
royalslider.module - Return an array of RoyalSlider Option Sets. It's used to populate select form items.
File
- ./
royalslider.module, line 191 - RoyalSlider module.
Code
function royalslider_optionset_load_all() {
ctools_include('export');
$optionsets = ctools_export_crud_load_all('royalslider_optionset');
foreach ($optionsets as $optionset) {
// Ensure the optionset is typecast after being loaded from DB.
_royalslider_typecast_optionset($optionset->options);
}
return $optionsets;
}