8 install.core.inc install_load_profile(&$install_state)
7 install.core.inc install_load_profile(&$install_state)

Loads information about the chosen profile during installation.


$install_state: An array of information about the current installation state. The loaded profile information will be added here, or an exception will be thrown if the profile cannot be loaded.

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


includes/install.core.inc, line 1370
API functions for installing Drupal.


function install_load_profile(&$install_state) {
  $profile_file = DRUPAL_ROOT . '/profiles/' . $install_state['parameters']['profile'] . '/' . $install_state['parameters']['profile'] . '.profile';
  if (file_exists($profile_file)) {
    include_once $profile_file;
    $install_state['profile_info'] = install_profile_info($install_state['parameters']['profile'], $install_state['parameters']['locale']);
  else {
    throw new Exception(st('Sorry, the profile you have chosen cannot be loaded.'));