function drush_wsdata_type_enable in Web Service Data 7
Enable a wsconfig type.
File
- ./
wsdata.drush.inc, line 174 - Drush implementation for the wsconfig module.
Code
function drush_wsdata_type_enable() {
$args = func_get_args();
$type = $args[0];
$wsconfigtype = wsconfig_type_load($type);
if (!$wsconfigtype) {
return drush_set_error('arguments_invalid', dt('WSConfig type !type was not found. Run "drush wsdata-list-types" for a list of available types.', array(
'!type' => $type,
)));
}
if ($wsconfigtype
->isDisabled()) {
$wsconfigtype
->enable();
}
}