function drush_pm_projectinfo_validate

8.0.x projectinfo.pm.inc drush_pm_projectinfo_validate()
master projectinfo.pm.inc drush_pm_projectinfo_validate()

Implementation of drush_hook_COMMAND_validate().

File

commands/pm/projectinfo.pm.inc, line 8

Code

function drush_pm_projectinfo_validate() {
  $status = drush_get_option('status');
  if (!empty($status)) {
    if (!in_array($status, array('enabled', 'disabled'), TRUE)) {
      return drush_set_error('DRUSH_PM_INVALID_PROJECT_STATUS', dt('!status is not a valid project status.', array('!status' => $status)));
    }
  }
}