You are here

function _ctools_drush_export_delete in Chaos Tool Suite (ctools) 7

Revert a single object.

Parameters

$table_name:

$object:

File

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

Code

function _ctools_drush_export_delete($table_name, $object) {
  $name = _ctools_drush_get_export_name($table_name, $object);
  if (_ctools_drush_object_is_overridden($object)) {

    // Remove from db.
    ctools_export_crud_delete($table_name, $object);
    drush_log("Reverted object: {$name}", 'success');
  }
  else {
    drush_log("Nothing to revert for: {$name}", 'notice');
  }
}