function drush_salesforce_sf_rest_version in Salesforce Suite 7.3
Same name and namespace in other branches
- 8.4 salesforce.drush.inc \drush_salesforce_sf_rest_version()
- 8.3 salesforce.drush.inc \drush_salesforce_sf_rest_version()
- 5.0.x salesforce.drush.inc \drush_salesforce_sf_rest_version()
Displays information about the REST API version the site is using.
File
- ./
salesforce.drush.inc, line 197 - Drush integration for Salesforce.
Code
function drush_salesforce_sf_rest_version() {
$salesforce = _drush_salesforce_drush_get_api();
if (isset($salesforce->rest_api_version)) {
$rows[] = array(
'Salesforce',
'Value',
);
foreach ($salesforce->rest_api_version as $key => $value) {
$rows[] = array(
$key,
$value,
);
}
$rows[] = array(
'login url',
$salesforce->login_url,
);
drush_print_table($rows, TRUE);
}
else {
drush_log('Could not obtain information about the current REST API version!', 'error');
}
}