function install_select_profile

cis7 install_select_profile(&$install_state)
cle7 install_select_profile(&$install_state)
elmsmedia7 install_select_profile(&$install_state)
icor7 install_select_profile(&$install_state)
meedjum_blog7 install_select_profile(&$install_state)
mooc7 install_select_profile(&$install_state)

Selects which profile to install.


$install_state: An array of information about the current installation state. The chosen profile will be added here, if it was not already selected previously, as will a list of all available profiles.

Return value

For interactive installations, a form allowing the profile to be selected, if the user has a choice that needs to be made. Otherwise, an exception is thrown if a profile cannot be chosen automatically.

1 string reference to 'install_select_profile'
install_tasks in includes/
Returns a list of all tasks the installer currently knows about.


includes/, line 1040
API functions for installing Drupal.


function install_select_profile(&$install_state) {
  $install_state['profiles'] += install_find_profiles();
  if (empty($install_state['parameters']['profile'])) {
    // Try to find a profile.
    $profile = _install_select_profile($install_state['profiles']);
    if (empty($profile)) {
      // We still don't have a profile, so display a form for selecting one.
      // Only do this in the case of interactive installations, since this is
      // not a real form with submit handlers (the database isn't even set up
      // yet), rather just a convenience method for setting parameters in the
      // URL.
      if ($install_state['interactive']) {
        include_once DRUPAL_ROOT . '/includes/';
        drupal_set_title(st('Select an installation profile'));
        $form = drupal_get_form('install_select_profile_form', $install_state['profiles']);
        return drupal_render($form);
      else {
        throw new Exception(install_no_profile_error());
    else {
      $install_state['parameters']['profile'] = $profile;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.