diff --git a/panopoly.profile b/panopoly.profile index 25dad39..2e99eac 100644 --- a/panopoly.profile +++ b/panopoly.profile @@ -31,9 +31,11 @@ function panopoly_install_tasks_alter(&$tasks, $install_state) { require_once(drupal_get_path('module', 'panopoly_core') . '/panopoly_core.profile.inc'); $tasks['install_load_profile']['function'] = 'panopoly_core_install_load_profile'; - // Since we only offer one language, define a callback to set this + // If we only offer one language, define a callback to set this require_once(drupal_get_path('module', 'panopoly_core') . '/panopoly_core.profile.inc'); - $tasks['install_select_locale']['function'] = 'panopoly_core_install_locale_selection'; + if (!(count(install_find_locales($install_state['parameters']['profile'])) > 1)) { + $tasks['install_select_locale']['function'] = 'panopoly_core_install_locale_selection'; + } } /**