| 5 install.php | install_select_profile() |
| 6 install.php | install_select_profile() |
| 7 install.core.inc | install_select_profile(&$install_state) |
| 8 install.core.inc | install_select_profile(&$install_state) |
Allow admin to select which profile to install.
Return value
The selected profile.
1 call to install_select_profile()
File
- ./
install.php, line 433
Code
function install_select_profile() {
include_once './includes/form.inc';
$profiles = install_find_profiles();
// Don't need to choose profile if only one available.
if (sizeof($profiles) == 1) {
$profile = array_pop($profiles);
require_once $profile->filename;
return $profile->name;
}
elseif (sizeof($profiles) > 1) {
foreach ($profiles as $profile) {
if (!empty($_POST['profile']) && ($_POST['profile'] == $profile->name)) {
return $profile->name;
}
}
install_task_list('profile-select');
drupal_set_title(st('Select an installation profile'));
print theme('install_page', drupal_get_form('install_select_profile_form', $profiles));
exit;
}
}
Login or register to post comments