drupal_install_profile_name
includes/install.inc, строка 100
- Версии
- 5 – 6
drupal_install_profile_name()
Loads the profile definition, extracting the profile's defined name.
Возвращаемое значение
The name defined in the profile's _profile_details()
hook.
Код
<?php
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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии