function drupal_install_profile_name
6.x install.inc | drupal_install_profile_name() |
Loads the profile definition, extracting the profile's defined name.
Return value
The name defined in the profile's _profile_details() hook.
4 calls to drupal_install_profile_name()
- install_check_requirements in drupal-6.x/
install.php - Check installation requirements and report any errors.
- install_settings_form in drupal-6.x/
install.php - Form API array definition for install_settings.
- install_tasks in drupal-6.x/
install.php - Tasks performed after the database is initialized.
- _install_settings_form_validate in drupal-6.x/
install.php - Helper function for install_settings_validate.
File
- drupal-6.x/
includes/ install.inc, line 107
Code
function drupal_install_profile_name() {
global $profile;
static $name = NULL;
if (!isset($name)) {
// Load profile details.
$function = $profile . '_profile_details';
if (function_exists($function)) {
$details = $function();
}
$name = isset($details['name']) ? $details['name'] : 'Drupal';
}
return $name;
}