function drush_wsdata_list_types in Web Service Data 7
Get a list of all wsdata config types.
File
- ./
wsdata.drush.inc, line 131 - Drush implementation for the wsconfig module.
Code
function drush_wsdata_list_types() {
$types = wsconfig_get_types();
$rows[] = array(
dt('Name'),
dt('Machine name'),
dt('Endpoint'),
dt('Connector'),
dt('Status'),
);
foreach ($types as $type) {
$status = $type
->isDisabled() ? dt('Disabled') : dt('Enabled');
$rows[] = array(
$type->label,
$type->type,
$type->data['endpoint'],
$type->data['connector'],
$status,
);
}
drush_print_table($rows, TRUE);
}