You are here

function _ctools_drush_export_enable in Chaos Tool Suite (ctools) 7

Enable a single object.

Parameters

$table_name:

$object:

File

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

Code

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

    // Enable object.
    ctools_export_crud_enable($table_name, $object);
    drush_log("Enabled object: {$name}", 'success');
  }
  else {
    drush_log("{$name} is already Enabled", 'notice');
  }
}