drupal_get_path
Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.
includes/common.inc, строка 1675
- Версии
- 5 – 6
drupal_get_path($type, $name)
Возвращает адрес системного элемента (модуль, тема и т.п.)
Параметры
$type
Типа элемента (например, 'theme'
, 'theme_engine'
, 'module'
).
$name
Имя элемента, адрес которого запрошен.
Возвращаемое значение
Адрес запрошенного элемента.
Returns the path to a system item (module, theme, etc.).
Parameters
$type The type of the item (i.e. theme, theme_engine, module).
$name The name of the item for which the path is requested.
Return value
The path to the requested item.
▾ 41 функции вызывают drupal_get_path()
- aggregator_init in modules/aggregator/aggregator.module
- Реализация hook_init().
- block_admin_display_form in modules/block/block.admin.inc
- Generate main blocks administration form.
- book_init in modules/book/book.module
- Реализация hook_init(). Добавляет CSS модуля book.
- color_get_info in modules/color/color.module
- Retrieve the color.module info for a particular theme.
- color_scheme_form in modules/color/color.module
- Конструктор формы. Возвращает форму конфигурирования.
- color_scheme_form_submit in modules/color/color.module
- Submit handler for color change form.
- comment_form in modules/comment/comment.module
- Создаёт базовую форму для комментирования, которая будет добавлена к странице с нодой или отображена на отдельной странице.
- comment_render in modules/comment/comment.module
- Отображает комментарии.
- dblog_init in modules/dblog/dblog.module
- drupal_eval in includes/common.inc
- Исполнить строку кода на PHP.
- forum_init in modules/forum/forum.module
- Реализация hook_init().
- help_main in modules/help/help.admin.inc
- Menu callback; prints a page listing a glossary of Drupal terminology.
- help_page in modules/help/help.admin.inc
- Menu callback; prints a page listing general help for a module.
- hook_init in developer/hooks/core.php
- Выполняет задачи по инициализации. См. также hook_boot(), hook_exit()
- install_tasks in ./install.php
- Tasks performed after the database is initialized.
- module_load_include in includes/module.inc
- Загружает подключаемый файл модуля.
- node_init in modules/node/node.module
- Реализация hook_init().
- node_mass_update in modules/node/node.admin.inc
- Make mass update of nodes, changing all nodes in the $nodes array to update them with the field values in $updates.
- openid_form_alter in modules/openid/openid.module
- Implementation of hook_form_alter : adds OpenID login to the login forms.
- openid_user_identities in modules/openid/openid.pages.inc
- Menu callback; Manage OpenID identities for the specified user.
- poll_init in modules/poll/poll.module
- Реализация hook_init().
- search_form in modules/search/search.module
- Выводит форму поиска.
- search_menu in modules/search/search.module
- Реализация hook_menu().
- system_clean_url_settings in modules/system/system.admin.inc
- Form builder; Configure Clean URL settings. See alsosystem_settings_form()
- system_date_time_settings in modules/system/system.admin.inc
- Form builder; Configure the site date and time settings. See alsosystem_settings_form()
- system_init in modules/system/system.module
- Реализация hook_init().
- theme_color_scheme_form in modules/color/color.module
- Темизирует форму выбора расцветки темы оформления.
- theme_profile_admin_overview in modules/profile/profile.admin.inc
- Theme the profile field overview into a drag and drop enabled table. See alsoprofile_admin_overview()
- theme_taxonomy_overview_terms in modules/taxonomy/taxonomy.admin.inc
- Темизирует обзор терминов как сортируемый список.
- theme_taxonomy_term_page in modules/taxonomy/taxonomy.pages.inc
- Рендерит HTML-представление страницы термина таксономии.
- theme_update_report in modules/update/update.report.inc
- Темизирует сообщение о состоянии модуля или темы.
- tracker_page in modules/tracker/tracker.pages.inc
- Menu callback. Prints a listing of active nodes on the site.
- user_admin_settings in modules/user/user.admin.inc
- Form builder; Configure user settings for this site. See alsosystem_settings_form()
- user_init in modules/user/user.module
- user_menu in modules/user/user.module
- Реализация hook_menu().
- _drupal_maintenance_theme in includes/theme.maintenance.inc
- Sets up the theming system for site installs, updates and when the site is in off-line mode. It also applies when the database is unavailable.
- _locale_translate_language_list in includes/locale.inc
- Выводит языки в таблице результатов поиска.
- _menu_router_build in includes/menu.inc
- Helper function to build the router table based on the data from hook_menu.
- _menu_site_is_offline in includes/menu.inc
- Проверяет, находится ли сайт в автономном режиме "на обслуживании".
- _theme_build_registry in includes/theme.inc
- Rebuild the hook theme_registry cache.
- _user_password_dynamic_validation in modules/user/user.module
- Add javascript and string translations for dynamic password validation (strength and confirmation checking).
Код
<?php
function drupal_get_path($type, $name) {
return dirname(drupal_get_filename($type, $name));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии