function semantic_fields_get_presets in Semantic Fields 7
Load all the presets, from file or database
1 call to semantic_fields_get_presets()
- semantic_fields_get_preset_options in ./
semantic_fields.module - Get options
File
- ./
semantic_fields.module, line 101 - The functionality of the module
Code
function semantic_fields_get_presets() {
ctools_include('export');
$results = ctools_export_load_object('semantic_fields_preset', 'all', array());
$presets = array();
foreach ($results as $result) {
$preset['name'] = $result->name;
$preset['admin_title'] = $result->admin_title;
$preset['description'] = $result->description;
$preset['data'] = $result->data;
$presets[] = $preset;
}
return $presets;
}