function drupal_install_profile_distribution_name in Drupal 7
Same name and namespace in other branches
- 8 core/includes/install.inc \drupal_install_profile_distribution_name()
- 9 core/includes/install.inc \drupal_install_profile_distribution_name()
Loads the installation profile, extracting its defined distribution name.
Return value
The distribution name defined in the profile's .info file. Defaults to "Drupal" if none is explicitly provided by the installation profile.
See also
8 calls to drupal_install_profile_distribution_name()
- DatabaseTasks::getFormOptions in includes/
install.inc - Return driver specific configuration options.
- DatabaseTasks_sqlite::getFormOptions in includes/
database/ sqlite/ install.inc - Return driver specific configuration options.
- install_check_requirements in includes/
install.core.inc - Checks installation requirements and reports any errors.
- install_database_errors in includes/
install.core.inc - Checks a database connection and returns any errors.
- install_finished in includes/
install.core.inc - Finishes importing files at end of installation.
File
- includes/
install.inc, line 196 - API functions for installing modules and themes.
Code
function drupal_install_profile_distribution_name() {
// During installation, the profile information is stored in the global
// installation state (it might not be saved anywhere yet).
if (drupal_installation_attempted()) {
global $install_state;
return $install_state['profile_info']['distribution_name'];
}
else {
$profile = drupal_get_profile();
$info = system_get_info('module', $profile);
return $info['distribution_name'];
}
}