function slick_optionset_load in Slick Carousel 7.2
Same name and namespace in other branches
- 7.3 slick.module \slick_optionset_load()
Returns the given optionset object identified by $id.
Parameters
string $id: The optionset ID with property name, or default.
Return value
object Returns the optionset, or else default, if no optionset found.
7 calls to slick_optionset_load()
- SlickTestCase::testOptionSetCrud in tests/
slick.test - Tests Slick optionset CRUD.
- SlickTestCase::testOptionSetForm in tests/
slick.test - Tests Slick optionset form.
- slick_fields_field_formatter_view in slick_fields/
slick_fields.module - Implements hook_field_formatter_view().
- slick_format_field_collection in includes/
slick.field_collection.inc - Formats Field collection data.
- slick_format_paragraphs in includes/
slick.paragraphs.inc - Formats Paragraphs data.
File
- ./
slick.module, line 238 - Slick carousel integration, the last carousel you'll ever need.
Code
function slick_optionset_load($id = 'default') {
ctools_include('export');
$optionset = ctools_export_crud_load('slick_optionset', $id);
// Ensures deleted optionset while being used doesn't screw up.
if (!isset($optionset->name)) {
$optionset = ctools_export_crud_load('slick_optionset', 'default');
}
return $optionset;
}