diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 5defe93..a4e244e 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -1141,7 +1141,20 @@ function install_settings_form_submit($form, &$form_state) { function install_select_profile(&$install_state) { if (empty($install_state['parameters']['profile'])) { // Try to find a profile. - $profile = _install_select_profile($install_state['profiles']); + $profiles = $install_state['profiles']; + foreach ($profiles as $key => $profile) { + $details = install_profile_info($profile->name); + // Remove hidden profiles (such as the testing profile, which only exists + // to speed up test runs) from the list. This prevents them from being + // displayed in the user interface, and also means that if there is only + // one non-hidden profile, _install_select_profile() will choose it + // automatically. + if (!empty($details['hidden'])) { + unset($profiles[$key]); + } + } + $profile = _install_select_profile($profiles); + $install_state['profiles'] = $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 @@ -1190,11 +1203,6 @@ function install_select_profile_form($form, &$form_state, $install_state) { foreach ($install_state['profiles'] as $profile) { $details = install_profile_info($profile->name); - // Don't show hidden profiles. This is used by to hide the testing profile, - // which only exists to speed up test runs. - if ($details['hidden'] === TRUE) { - continue; - } $profiles[$profile->name] = $details; // Determine the name of the profile; default to file name if defined name diff --git a/core/profiles/minimal/minimal.info b/core/profiles/minimal/minimal.info index 545e85c..0ea1d6f 100644 --- a/core/profiles/minimal/minimal.info +++ b/core/profiles/minimal/minimal.info @@ -2,6 +2,7 @@ name = Minimal description = Build a custom site without pre-configured functionality. Suitable for advanced users. version = VERSION core = 8.x +hidden = TRUE dependencies[] = node dependencies[] = block dependencies[] = dblog