function drush_sitealias_site_set_validate

8.0.x sitealias.drush.inc drush_sitealias_site_set_validate()
6.x sitealias.drush.inc drush_sitealias_site_set_validate()
7.x sitealias.drush.inc drush_sitealias_site_set_validate()
5.x sitealias.drush.inc drush_sitealias_site_set_validate()
master sitealias.drush.inc drush_sitealias_site_set_validate()

Validation callback for drush site-set.

File

commands/core/sitealias.drush.inc, line 336
Site alias commands.

Code

function drush_sitealias_site_set_validate() {
  if (!function_exists('posix_getppid')) {
    $args = array(
      '!command' => 'site-set',
      '!dependencies' => 'POSIX',
    );
    return drush_set_error('DRUSH_COMMAND_PHP_DEPENDENCY_ERROR', dt('Command !command needs the following PHP extensions installed/enabled to run: !dependencies.', $args));
  }
}