base_path

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/common.inc, строка 1497

Версии
5 – 6
base_path()

Возвращает базовый путь сайта (по-умолчанию, "/").

Связанные темы

▾ 18 функции вызывают base_path()

chameleon_page in themes/chameleon/chameleon.theme
db_connect in includes/database.mysql.inc
Инициализирует соединение с базой данных.
drupal_build_css_cache in includes/common.inc
Объединяет и оптимизирует файлы CSS, размещая конечный файл в файловой директории.
drupal_get_css in includes/common.inc
Returns a themed representation of all stylesheets that should be attached to the page. It loads the CSS in order, with 'core' CSS first, then 'module' CSS, then 'theme' CSS files. This ensures proper cascading of styles...
drupal_get_js in includes/common.inc
Returns a themed presentation of all JavaScript code for the current page. References to JavaScript files are placed in a certain order: first, all 'core' files, then all 'module' and finally all 'theme' JavaScript...
phptemplate_page in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_page function to be passed into a pluggable template engine. Uses the arg() function to generate a series of page template files suggestions based on the current path. If none are found, the default page.tpl.php...
search_index in modules/search/search.module
Update the full-text search index for a particular item.
system_clean_url_settings in modules/system/system.module
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.
theme_color_scheme_form in modules/color/color.module
Theme color form.
theme_get_setting in includes/theme.inc
Получает значение указанной настройки темы.
theme_image in includes/theme.inc
Возвращает темизированную картинку.
theme_install_page in includes/theme.inc
theme_maintenance_page in includes/theme.inc
update_finished_page in ./update.php
url in includes/common.inc
Генерирует URL из указанного пути меню. Также поддерживает уже существующие URL.
_color_page_alter in modules/color/color.module
Callback for the theme to alter the resources used.
_update_178_url_fix in modules/system/system.install

Код

<?php
function base_path() {
  return $GLOBALS['base_path'];
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему