function uptolike_preset_list in Uptolike share buttons 7
List of Uptolike ctools presets.
Return value
array An associative array containing machine readable and human names of presets.
3 calls to uptolike_preset_list()
- uptolike_block_configure in ./
uptolike.module - Implements hook_block_configure().
- _uptolike_field_formatter_settings_form in ./
uptolike.module - Pseudo hook_field_formatter_settings_form().
- _uptolike_filter_settings in ./
uptolike.module - Settings callback for Uptolike filter.
File
- ./
uptolike.module, line 118 - Main file for Uptolike module.
Code
function uptolike_preset_list() {
ctools_include('export');
$objects = ctools_export_load_object('uptolike_preset');
$list = array();
foreach ($objects as $object) {
// Do not show disabled presets.
if (!isset($object->disabled) || isset($object->disabled) && !$object->disabled) {
$list[$object->name] = $object->admin_title;
}
}
asort($list);
return $list;
}