drupal_get_title

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

includes/path.inc, строка 182

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

Получает заголовок текущей страницы для показа на странице и панели заголовка.

Возвращаемое значение

Заголовок текущей страницы.

▾ 4 функции вызывают drupal_get_title()

chameleon_page in themes/chameleon/chameleon.theme
statistics_exit in modules/statistics/statistics.module
Implementation of hook_exit().
template_preprocess_maintenance_page in includes/theme.maintenance.inc
The variables generated here is a mirror of template_preprocess_page(). This preprocessor will run it's course when theme_maintenance_page() is invoked. It is also used in theme_install_page() and theme_update_page() to keep all the variables...
template_preprocess_page in includes/theme.inc
Обрабатывает переменные для page.tpl.php

Код

<?php
function drupal_get_title() {
  $title = drupal_set_title();

  // during a bootstrap, menu.inc is not included and thus we cannot provide a title
  if (!isset($title) && function_exists('menu_get_active_title')) {
    $title = check_plain(menu_get_active_title());
  }

  return $title;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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