function _ctools_drush_object_is_disabled in Chaos Tool Suite (ctools) 7
Determine if an object is disabled.
Parameters
$object: Loaded CTools exportable object.
Return value
TRUE or FALSE
2 calls to _ctools_drush_object_is_disabled()
- _ctools_drush_export_disable in drush/
ctools.drush.inc - Disable a single object.
- _ctools_drush_export_enable in drush/
ctools.drush.inc - Enable a single object.
1 string reference to '_ctools_drush_object_is_disabled'
- _ctools_drush_filter_exportables in drush/
ctools.drush.inc - Filters a collection of exportables based on filters.
File
- drush/
ctools.drush.inc, line 778 - CTools Drush commands.
Code
function _ctools_drush_object_is_disabled($object) {
return isset($object->disabled) && $object->disabled == TRUE ? TRUE : FALSE;
}