You are here

function _ctools_drush_export_disable in Chaos Tool Suite (ctools) 7

Disable a single object.

Parameters

$table_name:

$object:

File

drush/ctools.drush.inc, line 714
CTools Drush commands.

Code

function _ctools_drush_export_disable($table_name, $object) {
  $name = _ctools_drush_get_export_name($table_name, $object);
  if (!_ctools_drush_object_is_disabled($object)) {

    // Disable object.
    ctools_export_crud_disable($table_name, $object);
    drush_log("Disabled object: {$name}", 'success');
  }
  else {
    drush_log("{$name} is already disabled", 'notice');
  }
}