function _ctools_drush_get_export_name
Gets the key for an exportable type.
Parameters
$table_name: The exportable table name.
$object: The exportable object.
Return value
string The key defined in the export schema data.
3 calls to _ctools_drush_get_export_name()
- _ctools_drush_export_delete in drush/
ctools.drush.inc - Revert a single object.
- _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.
File
-
drush/
ctools.drush.inc, line 764
Code
function _ctools_drush_get_export_name($table_name, $object) {
$info = _ctools_drush_export_info(array(
$table_name,
));
$key = $info['schemas'][$table_name]['export']['key'];
return $object->{$key};
}