function drush_core_site_install

8.0.x site_install.drush.inc drush_core_site_install($profile = NULL)
6.x site_install.drush.inc drush_core_site_install($profile = NULL)
7.x site_install.drush.inc drush_core_site_install($profile = NULL)
3.x site_install.drush.inc drush_core_site_install($profile = 'standard')
4.x site_install.drush.inc drush_core_site_install($profile = NULL)
5.x site_install.drush.inc drush_core_site_install($profile = NULL)
master site_install.drush.inc drush_core_site_install($profile = NULL)

Command callback.

File

commands/core/site_install.drush.inc, line 268

Code

function drush_core_site_install($profile = NULL) {
  $args = func_get_args();
  $form_options = array();

  if ($args) {
    // The first argument is the profile.
    $profile = array_shift($args);
    // Subsequent arguments are additional form values.
    foreach ($args as $arg) {
      list($key, $value) = explode('=', $arg);

      // Allow for numeric and NULL values to be passed in.
      if (is_numeric($value)) {
        $value = intval($value);
      }
      elseif ($value == 'NULL') {
        $value = NULL;
      }

      $form_options[$key] = $value;
    }
  }
  drush_include_engine('drupal', 'site_install');
  drush_core_site_install_version($profile, $form_options);
}