drupal_set_title
Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.
includes/path.inc, строка 187
- Версии
- 5 – 6
drupal_set_title($title = NULL)
Устанавливает заголовок для текущей страницы для отображения на странице и панели браузера.
Параметры
$title
(опционально) Строковое значение заголовка; если установлено в NULL
(по умолчанию), текущий заголовок останется без изменений.
Возвращаемое значение
Обновленный заголовок для текущей страницы.
Set the title of the current page, for display on the page and in the title bar.
Parameters
$title Optional string value to assign to the page title; or if set to NULL (default), leaves the current title unchanged.
Return value
The updated title of the current page.
▾ 54 функции вызывают drupal_set_title()
- block_admin_configure in modules/block/block.module
- Коллбэк меню. Отображает форму настройки блока.
- blog_page_user in modules/blog/blog.module
- Показывает страницу Друпал с последними записями в блоге данного пользователя.
- book_admin_edit in modules/book/book.module
- Конструктор формы для управления иерархией книги.
- book_outline in modules/book/book.module
- Implementation of function book_outline() Handles all book outline operations.
- comment_form_add_preview in modules/comment/comment.module
- Конструктор формы; Формирует и проверяет форму предпросмотра комментария.
- confirm_form in modules/system/system.module
- Вывод формы подтверждения какого-либо действия.
- contact_user_page in modules/contact/contact.module
- Страница персональных контактов.
- db_connect in includes/database.mysql.inc
- Инициализирует соединение с базой данных.
- db_set_active in includes/database.inc
- Активирует базу данных для последующих запросов.
- drupal_access_denied in includes/common.inc
- Генерирует ошибку 403 если для просмотра страницы недостаточно прав.
- drupal_get_title in includes/path.inc
- Получает заголовок текущей страницы для показа на странице и панели заголовка.
- drupal_not_found in includes/common.inc
- Генерирует ошибку 404 (страница не найдена) если запрос не удалось обработать.
- drupal_site_offline in includes/common.inc
- Generates a site off-line message
- example_profile_tasks in ./example.profile
- Perform any final installation tasks for this profile.
- help_page in modules/help/help.module
- Menu callback; prints a page listing general help for all modules.
- install_already_done_error in ./install.php
- Show an error page when Drupal has already been installed.
- install_change_settings in ./install.php
- Configure and rewrite settings.php.
- install_check_requirements in ./install.php
- Page to check installation requirements and report any errors.
- install_complete in ./install.php
- Page displayed when the installation is complete. Called from install.php.
- install_missing_modules_error in ./install.php
- Show an error page when Drupal is missing required modules.
- install_no_profile_error in ./install.php
- Show an error page when there are no profiles available.
- install_select_locale in ./install.php
- Find all .po files for the current profile and allow admin to select which to use.
- install_select_profile in ./install.php
- Find all .profile files and allow admin to select which to install.
- node_add in modules/node/node.module
- Present a node submission form or a set of links to such forms.
- node_page_default in modules/node/node.module
- Menu callback; Generate a listing of promoted nodes.
- node_page_edit in modules/node/node.module
- Menu callback; presents the node editing form, or redirects to delete confirmation.
- node_page_view in modules/node/node.module
- Menu callback; view a single node.
- node_preview in modules/node/node.module
- Generate a node preview.
- node_revisions in modules/node/node.module
- Menu callback for revisions related activities.
- node_revision_overview in modules/node/node.module
- Generate an overview table of older revisions of a node.
- path_admin_edit in modules/path/path.module
- Menu callback; handles pages for creating and editing URL aliases.
- poll_results in modules/poll/poll.module
- Callback for the 'results' tab for polls you can vote on
- poll_votes in modules/poll/poll.module
- Callback for the 'votes' tab for polls you can see other votes on
- profile_browse in modules/profile/profile.module
- Menu callback; display a list of user information.
- profile_field_form in modules/profile/profile.module
- Menu callback: Generate a form to add/edit a user profile field.
- statistics_node_tracker in modules/statistics/statistics.module
- statistics_top_pages in modules/statistics/statistics.module
- Menu callback; presents the 'top pages' page.
- statistics_top_referrers in modules/statistics/statistics.module
- Menu callback; presents the 'referrer' page.
- statistics_top_visitors in modules/statistics/statistics.module
- Menu callback; presents the 'top visitors' page.
- statistics_user_tracker in modules/statistics/statistics.module
- taxonomy_form_term in modules/taxonomy/taxonomy.module
- taxonomy_overview_terms in modules/taxonomy/taxonomy.module
- Display a tree of all the terms in a vocabulary, with options to edit each one.
- taxonomy_term_page in modules/taxonomy/taxonomy.module
- Menu callback; displays all nodes associated with a term.
- theme_forum_display in modules/forum/forum.module
- Format the forum body.
- tracker_track_user in modules/tracker/tracker.module
- Menu callback. Prints a listing of active nodes on the site.
- update_access_denied_page in ./update.php
- update_do_update_page in ./update.php
- Perform updates for the JS version and return progress.
- update_finished_page in ./update.php
- update_info_page in ./update.php
- update_progress_page in ./update.php
- update_progress_page_nojs in ./update.php
- Perform updates for the non-JS version and return the status page.
- update_selection_page in ./update.php
- user_edit in modules/user/user.module
- user_view in modules/user/user.module
Код
<?php
function drupal_set_title($title = NULL) {
static $stored_title;
if (isset($title)) {
$stored_title = $title;
}
return $stored_title;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии