function _uptolike_ctools_export_load_enabled_object in Uptolike share buttons 7
Load enabled "uptolike_preset" object.
Parameters
array $arg: An array of arguments whose actual use is defined by the "conditions" argument. See ctools_export_load_object() fo details.
Return value
array|bool|mixed Loaded ctools object or FALSE if object is disabled.
3 calls to _uptolike_ctools_export_load_enabled_object()
- uptolike_block_view in ./
uptolike.module - Implements hook_block_view().
- uptolike_entity_view in ./
uptolike.module - Implements hook_entity_view().
- _uptolike_filter_process in ./
uptolike.module - Uptolike filter process callback.
File
- ./
uptolike.module, line 142 - Main file for Uptolike module.
Code
function _uptolike_ctools_export_load_enabled_object(array $arg) {
ctools_include('export');
$object = ctools_export_load_object('uptolike_preset', 'conditions', $arg);
$object = reset($object);
if (!isset($object->disabled) || isset($object->disabled) && !$object->disabled) {
return $object;
}
return FALSE;
}