function drush_environment_switch_validate in Environment 6
Same name and namespace in other branches
- 8 environment.drush.inc \drush_environment_switch_validate()
- 7 environment.drush.inc \drush_environment_switch_validate()
Implementation of drush_hook_COMMAND_validate() for environment_switch.
File
- ./
environment.drush.inc, line 68 - Executes the environment_switch capabilities
Code
function drush_environment_switch_validate($target_env = NULL) {
$environments = environment_load();
if (empty($environments)) {
return drush_set_error('DRUSH_ENVIRONMENT_ERROR', dt('There are no defined environments available.'));
}
}