t

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

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

Версии
5
t($string, $args = 0)
6
t($string, $args = array(), $langcode = NULL)

Переводит строку на заданный язык или язык страницы. Текст, предназначенный для чтения пользователем, должен пропускаться через эту функцию.

Примеры:

if (!$info || !$info['extension']) {
  form_set_error('picture_upload', t('The uploaded file was not an image.'));
}
$form['submit'] = array(
  '#type' => 'submit',
  '#value' => t('Log in'),
);

Текст, прошедший через t(), попадает в таблицу локализации и может быть переведен на другой язык.

В тексте можно использовать «заменители» для вставки динамической информации, которая может меняться во времени и которую не следует переводить (переменные или ссылки). Например:

$output = t('There are currently %members and %visitors online.', array(
  '%members' => format_plural($total_users, '1 user', '@count users'),
  '%visitors' => format_plural($guests->count, '1 guest', '@count guests')));

Существует три вида заменителей:

  • !variable — текст нужно вставляется «как есть», без предварительной обработки.

    $message[] = t("If you don't want to receive such e-mails, you can change your settings at !url.", array('!url' => url("user/$account->uid", array('absolute' => TRUE))));
  • @variable — текст пропускается через функциюю фильтрации пользовательского ввода check_plain(), во избежание появления нежелательного или вредоносного кода в конечном тексте.

    drupal_set_title($title = t("@name's blog", array('@name' => $account->name)));
  • %variable — текст пропускается через фильтр ввода и выделяется (последующим пропусканием его через theme_placeholder() (по-умолчанию, текст приобретает курсивное начертание)).

    $message = t('%name-from sent %name-to an e-mail.', array('%name-from' => $user->name, '%name-to' => $account->name));

При использовании t(), старайтесь помещать как можно более полные фразы, предложения или абзацы в одном вызове функции. Это предоставит переводчикам дополнительныц контекст, и перевод выйдет более точным.

Несмотря на то, что HTML разметка не запрещена к использованию, старайтесь по-максимуму избегать HTML в строках, подаваемых в функцию. Так переводы не нарушатся при дальнейших изменениях разметки.

Плохо:

$output .= t('<p>Go to the @contact-page.</p>', array('@contact-page' => l(t('contact page'), 'contact')));

Хорошо:

$output .= '<p>'. t('Go to the <a href="@contact-page">contact page</a>.', array('@contact-page' => url('contact'))) .'</p>';

Старайтесь избегать экранирования кавычек, во избежание ошибок при извлечении переводов.

Плохо:

$output .= t('Don\'t click me.');

Хорошо:

$output .= t("Don't click me.");

В функцию следует подавать строку, а не переменную, так как переводы извлекаются из находящихся в t() строках.

Плохо:

$message = 'An error occurred.';
drupal_set_message(t($message), 'error');
$output .= t($message);

Хорошо:

$message = t('An error occurred.');
drupal_set_message($message, 'error');
$output .= $message;

Единственное исключение к этому правилу — когда строка, находящаяся в переменной уже подается напрямую в t() где-то в другом месте (а поэтому, извлечется корректно).

В некоторых случаях, модули могут использовать строки, которые объявленые где-то вне сайта. Например, если модуль работает с каким-то удаленным PHP приложением, которое передает в модуль строки. Исходя из правила озвученного выше, эти строки не смогут быть извлечены для перевода. В этих случаях, автор модуля должен позаботится о включении в модуль файла-заглушки, который содержит список вызовов t() со всеми возможными строками.

Пример внешнего скрипта:

class Time {
  public $yesterday = 'Yesterday';
  public $today = 'Today';
  public $tomorrow = 'Tomorrow';
}

Пример файла-заглушки.

// Файл-заглушка будет пропарсен как обычный скрипт Друпала
function example_potx() {
  $strings = array(
    t('Yesterday'),
    t('Today'),
    t('Tomorrow'),
  );
  // Ничего не требуется возвращать.
}

После этого, такой код уже не будет неверным:

$time = new Time();
$output .= t($time->today);

Несмотря на то, что это довольно заманчивая идея, подавать в t() данные не из кода (напр, пользовательский ввод), делать это настоятельно не рекомендуется, так как может привести к следующим проблемам и ошибкам:

  • Функция t() не поддерживает обновления существующих строк. Один и тот же вызов функции с разными данными будет создавать в базе все новые и новые записи, без какой-либо реальной возможности их перевести.
  • Функция t() предполагает использование исключительно Английского языка в подаваемых строках. Пользовательский ввод может быть на другом языке, что приведет к ошибках переводов. Если вы делаете сайт на языке, отличном от английского, либо избегайте использования t() вообще, либо кодируйте строки сначала на английском, а затем переводите на свой язык (этот подход является лучшим и всецело рекомендуется, так как при развитии сайта вы рано или поздно придете к проблеме локализации сайта).
  • При использовании t(), строки помещаются в текстовую группу 'Встроенный интерфейс' ('Built-in interface') системы локализации, которая используется для создания русурсных .po файлов перевода. Пользовательские данные, подающиеся в t() попадают в эту группу и перемешиваются вместе со строками первода интерфейса, что вносит элемент хаоса в процесс перевода.

Плохо:

$item = item_load();
$output .= check_plain(t($item['title']));

Вместо этого, перевод таких данных нужно осуществлять, используя системы локализации, но в другой текстовой группе, либо напрямую, либо с использованием стронних модулей (см. также hook_locale()).

В коде, который выполняется во время процесса установки, либо обновления Друпала следует использовать функцию st(), вместо t(). Какая именно функция может быть вызвана в данный момент времени, можно узнать из вызова вспомогательной функции get_t().

Параметры

$string Строка на английском языке.

$args Ассоциативный массив с расшифровкой «заменителей». Первый символ заменителя определяет его тип:

  • !variable: вставуляется «как есть»
  • @variable: фильтрует HTML (check_plain())
  • %variable: фильтрует HTML и выделает слово (check_plain() + theme_placeholder())

$langcode Опциональный указатель языка, на который нужно перевести текст. По-умолчанию используется язык текущей страницы.

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

Переведенная строка.

Примечания

  • Для перевода числителей следует использовать format_plural().

▾ 608 функции вызывают t()

aggregator_admin_remove_feed in modules/aggregator/aggregator.module
aggregator_admin_settings in modules/aggregator/aggregator.module
Конструктор формы; настройка агрегатора.
aggregator_block in modules/aggregator/aggregator.module
Реализация hook_block().
aggregator_form_category_submit in modules/aggregator/aggregator.module
Process aggregator_form_category form submissions. @todo Add delete confirmation dialog.
aggregator_form_category_validate in modules/aggregator/aggregator.module
Validate aggregator_form_feed form submissions.
aggregator_form_feed in modules/aggregator/aggregator.module
Генерирует форму добавления/редактирования источников фида.
aggregator_form_feed_submit in modules/aggregator/aggregator.module
Process aggregator_form_feed form submissions. @todo Add delete confirmation dialog.
aggregator_form_feed_validate in modules/aggregator/aggregator.module
Validate aggregator_form_feed form submissions.
aggregator_help in modules/aggregator/aggregator.module
Реализация hook_help().
aggregator_menu in modules/aggregator/aggregator.module
Реализация hook_menu().
aggregator_page_categories in modules/aggregator/aggregator.module
Коллбэк меню; показывает все категории, используемые аггрегатором.
aggregator_page_category in modules/aggregator/aggregator.module
Menu callback; displays all the items aggregated in a particular category.
aggregator_page_last in modules/aggregator/aggregator.module
Menu callback; displays the most recent items gathered from any feed.
aggregator_page_list in modules/aggregator/aggregator.module
aggregator_page_list_submit in modules/aggregator/aggregator.module
aggregator_page_list_validate in modules/aggregator/aggregator.module
aggregator_page_rss in modules/aggregator/aggregator.module
Коллбэк меню. Генерирует фид из материалов аггергатора или категорий в формате RSS 0.92.
aggregator_page_sources in modules/aggregator/aggregator.module
Коллбэк меню; показывает все фиды, используемые аггрегатором.
aggregator_parse_feed in modules/aggregator/aggregator.module
aggregator_refresh in modules/aggregator/aggregator.module
Проверяет фид новостей на наличие новых пунктов.
aggregator_remove in modules/aggregator/aggregator.module
Удаляет все элементы из фида.
aggregator_view in modules/aggregator/aggregator.module
block_admin_configure in modules/block/block.module
Коллбэк меню. Отображает форму настройки блока.
block_admin_configure_submit in modules/block/block.module
block_admin_configure_validate in modules/block/block.module
block_admin_display in modules/block/block.module
Generate main block administration form.
block_admin_display_submit in modules/block/block.module
Process main block administration form submission.
block_box_delete in modules/block/block.module
Коллбэк меню; подтверждение удаления блока.
block_box_delete_submit in modules/block/block.module
Удаляет блок, созданный пользователем.
block_box_form in modules/block/block.module
block_box_form_submit in modules/block/block.module
block_box_form_validate in modules/block/block.module
block_example_block in developer/examples/block_example.module
Реализация hook_block().
block_example_contents in developer/examples/block_example.module
Функция определяющая содержимое блока.
block_help in modules/block/block.module
Реализация hook_help().
block_menu in modules/block/block.module
Реализация hook_menu().
block_user in modules/block/block.module
Реализация hook_user().
blogapi_admin_settings in modules/blogapi/blogapi.module
blogapi_blogger_edit_post in modules/blogapi/blogapi.module
Коллбэк Blogging API. Модифицирует указанную ноду блога.
blogapi_blogger_new_post in modules/blogapi/blogapi.module
Коллбэк Blogging API. Вставляет новую запись блога как ноду.
blogapi_help in modules/blogapi/blogapi.module
Реализация hook_help().
blogapi_menu in modules/blogapi/blogapi.module
blogapi_metaweblog_new_media_object in modules/blogapi/blogapi.module
Коллбэк Blogging API. Вставляет файл в Друпал.
blogapi_mt_publish_post in modules/blogapi/blogapi.module
Коллбэк Blogging API. Публикует данную ноду.
blogapi_mt_validate_terms in modules/blogapi/blogapi.module
Blogging API helper - find allowed taxonomy terms for a node type.
blogapi_status_error_check in modules/blogapi/blogapi.module
Check that the user has permission to save the node with the chosen status.
blogapi_validate_user in modules/blogapi/blogapi.module
Проверяет, имеет ли указанный пользователь право редактировать блог.
blogapi_xmlrpc in modules/blogapi/blogapi.module
Реализация hook_xmlrpc().
blog_block in modules/blog/blog.module
Реализация hook_block().
blog_help in modules/blog/blog.module
Реализация hook_help().
blog_link in modules/blog/blog.module
Реализация hook_link().
blog_menu in modules/blog/blog.module
Реализация hook_menu().
blog_node_info in modules/blog/blog.module
Реализация hook_node_info().
blog_page_last in modules/blog/blog.module
Коллбэк меню. Показывает страницу Друпал с последними записями в блогах пользователей.
blog_page_user in modules/blog/blog.module
Показывает страницу Друпал с последними записями в блоге данного пользователя.
blog_user in modules/blog/blog.module
Реализация hook_user().
blog_view in modules/blog/blog.module
Реализация hook_view().
book_admin_edit in modules/book/book.module
Конструктор формы для управления иерархией книги.
book_admin_edit_submit in modules/book/book.module
book_admin_orphan in modules/book/book.module
Коллбэк меню. Отображает список всех страниц книг (book), не имеющих родителя.
book_admin_overview in modules/book/book.module
Возвращает административный краткий обзор всех книг.
book_block in modules/book/book.module
Реализация hook_block().
book_export in modules/book/book.module
Menu callback; Generates various representation of a book page with all descendants and prints the requested representation to output.
book_form in modules/book/book.module
Реализация hook_form().
book_help in modules/book/book.module
Реализация hook_help().
book_link in modules/book/book.module
Реализация hook_link().
book_menu in modules/book/book.module
Реализация hook_menu().
book_node_info in modules/book/book.module
Реализация hook_node_info().
book_outline in modules/book/book.module
Implementation of function book_outline() Handles all book outline operations.
book_outline_submit in modules/book/book.module
Handles book outline form submissions.
book_toc in modules/book/book.module
Returns an array of titles and nid entries of book pages in table of contents order.
chameleon_comment in themes/chameleon/chameleon.theme
chameleon_node in themes/chameleon/chameleon.theme
chameleon_page in themes/chameleon/chameleon.theme
chameleon_regions in themes/chameleon/chameleon.theme
check_markup in modules/filter/filter.module
Фильтрует текст с помощью выбранного формата ввода.
color_form_alter in modules/color/color.module
Реализация hook_form_alter().
color_help in modules/color/color.module
Implementation of hook_help
color_requirements in modules/color/color.install
color_scheme_form in modules/color/color.module
Конструктор формы. Возвращает форму конфигурирования.
color_scheme_form_submit in modules/color/color.module
Submit handler for color change form.
comment_admin_overview in modules/comment/comment.module
Конструктор формы; генерирует форму с кратким содержанием комментариев для администратора.
comment_admin_overview_submit in modules/comment/comment.module
Execute the chosen 'Update option' on the selected comments, such as publishing, unpublishing or deleting.
comment_admin_overview_validate in modules/comment/comment.module
We can't execute any 'Update options' if no comments were selected.
comment_admin_settings in modules/comment/comment.module
Menu callback; presents the comment settings page.
comment_block in modules/comment/comment.module
Реализация hook_block().
comment_confirm_delete in modules/comment/comment.module
comment_confirm_delete_submit in modules/comment/comment.module
comment_controls in modules/comment/comment.module
comment_delete in modules/comment/comment.module
Коллбек меню; Подтверждение удаления комментария.
comment_form in modules/comment/comment.module
comment_form_add_preview in modules/comment/comment.module
Конструктор формы; Формирует и проверяет форму предпросмотра комментария.
comment_form_alter in modules/comment/comment.module
comment_help in modules/comment/comment.module
Реализация hook_help().
comment_link in modules/comment/comment.module
Реализация hook_link().
comment_links in modules/comment/comment.module
comment_menu in modules/comment/comment.module
Реализация hook_menu().
comment_multiple_delete_confirm in modules/comment/comment.module
List the selected comments and verify that the admin really wants to delete them.
comment_multiple_delete_confirm_submit in modules/comment/comment.module
Perform the actual comment deletion.
comment_operations in modules/comment/comment.module
Comment operations. We offer different update operations depending on which comment administration page we're on.
comment_render in modules/comment/comment.module
Отображает комментарии.
comment_reply in modules/comment/comment.module
This function is responsible for generating a comment reply form. There are several cases that have to be handled, including: replies to comments replies to nodes attempts to reply to nodes that can no longer accept comments respecting access...
comment_save in modules/comment/comment.module
Сохраняет новый или измененный комментарий.
comment_user in modules/comment/comment.module
Реализация hook_user().
comment_validate in modules/comment/comment.module
Проверка данных комментария.
confirm_form in modules/system/system.module
Вывод формы подтверждения какого-либо действия.
contact_admin_categories in modules/contact/contact.module
Categories/list tab.
contact_admin_delete in modules/contact/contact.module
Коллбэк меню. Страница удаления категорий.
contact_admin_delete_submit in modules/contact/contact.module
Process category delete form submission.
contact_admin_edit in modules/contact/contact.module
Коллбэк меню; Страница редактирования категорий.
contact_admin_edit_submit in modules/contact/contact.module
Process the contact category edit page form submission.
contact_admin_edit_validate in modules/contact/contact.module
Валидатор формы страницы редактирования категорий контактов.
contact_admin_settings in modules/contact/contact.module
contact_help in modules/contact/contact.module
Реализация hook_help().
contact_mail_page in modules/contact/contact.module
contact_mail_page_submit in modules/contact/contact.module
Process the site-wide contact page form submission.
contact_mail_page_validate in modules/contact/contact.module
Validate the site-wide contact page form submission.
contact_mail_user in modules/contact/contact.module
contact_mail_user_submit in modules/contact/contact.module
Process the personal contact page form submission.
contact_menu in modules/contact/contact.module
Реализация hook_menu().
contact_site_page in modules/contact/contact.module
Site-wide contact page
contact_user in modules/contact/contact.module
Реализация hook_user().
contact_user_page in modules/contact/contact.module
Страница персональных контактов.
date_validate in includes/form.inc
Проверка корректности ввода данных типа date. Запрет ввода дат типа 31 Февраля, 2006.
do_search in modules/search/search.module
Do a query on the full-text search index for a word or words.
drupal_access_denied in includes/common.inc
Генерирует ошибку 403 если для просмотра страницы недостаточно прав.
drupal_auth in modules/drupal/drupal.module
Implementation of hook_auth().
drupal_check_module in includes/install.inc
Check a module's requirements.
drupal_client_ping in modules/drupal/drupal.module
Callback function from drupal_xmlrpc() called when another site pings this one.
drupal_convert_to_utf8 in includes/unicode.inc
Конвертирует данные в UTF-8.
drupal_cron_cleanup in includes/common.inc
Shutdown function for cron cleanup.
drupal_cron_run in includes/common.inc
При вызове выполняет задачи cron
drupal_distributed_authentication_settings in modules/drupal/drupal.module
drupal_help in modules/drupal/drupal.module
Реализация hook_help().
drupal_menu in modules/drupal/drupal.module
Реализация hook_menu().
drupal_notify in modules/drupal/drupal.module
Sends a ping to the Drupal directory server.
drupal_not_found in includes/common.inc
Генерирует ошибку 404 (страница не найдена) если запрос не удалось обработать.
drupal_sites_registry_settings in modules/drupal/drupal.module
drupal_site_offline in includes/common.inc
Generates a site off-line message
drupal_validate_form in includes/form.inc
Validates user-submitted form data from a global variable using the validate functions defined in a structured form array.
drupal_xmlrpc in modules/drupal/drupal.module
Implementation of hook_xmlrpc().
drupal_xml_parser_create in includes/unicode.inc
Prepare a new XML parser.
error_handler in includes/common.inc
Log errors as defined by administrator Error levels: 0 = Log errors to database. 1 = Log errors to database and to screen.
example_element_demo in developer/examples/example_element.module
This is a simple form to demonstrate how to use the phonenumber form element we defined.
example_element_expand in developer/examples/example_element.module
Our process callback to expand the control.
example_element_menu in developer/examples/example_element.module
Реализация hook_menu().
example_element_validate in developer/examples/example_element.module
Our element's validation function.
expand_password_confirm in includes/form.inc
Expand a password_confirm field into two text boxes.
fileupload_form in developer/examples/fileupload.module
Реализация hook_form().
fileupload_help in developer/examples/fileupload.module
Implementation of hook_help.
fileupload_menu in developer/examples/fileupload.module
Implementation of hook_menu.
fileupload_node_info in developer/examples/fileupload.module
Implementation of hook_node_info.
fileupload_validate in developer/examples/fileupload.module
Implementation of hook_validate().
file_check_directory in includes/file.inc
Проверка каталога на существование и доступность для записи.
file_check_upload in includes/file.inc
Verify an uploaded file.
file_copy in includes/file.inc
Копирует файл из одного места в другое. Эта мощная функция работает как расширенная версия функции copy(). Непосредственно перед копированием проверяет правильность $source и $dest и возможность чтения/записи. Копирование файла происходить только если $source и $dest не равны.
file_move in includes/file.inc
Перемещает файл в новое место.
file_save_data in includes/file.inc
Save a string to the specified destination.
filter_admin_configure in modules/filter/filter.module
Menu callback; display settings defined by filters.
filter_admin_delete in modules/filter/filter.module
Menu callback; confirm deletion of a format.
filter_admin_delete_submit in modules/filter/filter.module
Process filter delete form submission.
filter_admin_format_form in modules/filter/filter.module
Generate a filter format form.
filter_admin_format_form_submit in modules/filter/filter.module
Process filter format form submissions.
filter_admin_format_form_validate in modules/filter/filter.module
Validate filter format form submissions.
filter_admin_order in modules/filter/filter.module
Menu callback; display form for ordering filters for a format.
filter_admin_order_submit in modules/filter/filter.module
Process filter order configuration form submission.
filter_admin_overview in modules/filter/filter.module
Displays a list of all input formats and which one is the default
filter_admin_overview_submit in modules/filter/filter.module
filter_example_filter in developer/examples/filter_example.module
Реализация hook_filter().
filter_example_filter_tips in developer/examples/filter_example.module
Реализация hook_filter_tips().
filter_filter in modules/filter/filter.module
Implementation of hook_filter(). Contains a basic set of essential filters. HTML filter: Validates user-supplied HTML, transforming it as necessary. PHP evaluator: Executes PHP code. Line break converter: Converts newlines into paragraph and break tags.
filter_filter_tips in modules/filter/filter.module
Реализация hook_filter_tips().
filter_form in modules/filter/filter.module
Generate a selector for choosing a format in a form.
filter_form_validate in modules/filter/filter.module
filter_help in modules/filter/filter.module
Реализация hook_help().
filter_menu in modules/filter/filter.module
Реализация hook_menu().
format_date in includes/common.inc
Форматирует дату в заданном формате или в формате настроек сайта.
format_interval in includes/common.inc
Форматирует временной интервал с заданной точностью.
format_plural in includes/common.inc
Форматирует и переводит строку, содержащую число.
format_size in includes/common.inc
Генерирует строчное представление указанного количества байт.
forum_admin_settings in modules/forum/forum.module
forum_block in modules/forum/forum.module
Реализация hook_block().
forum_confirm_delete in modules/forum/forum.module
Returns a confirmation page for deleting a forum taxonomy term.
forum_confirm_delete_submit in modules/forum/forum.module
Implementation of forms api _submit call. Deletes a forum after confirmation.
forum_form in modules/forum/forum.module
Реализация hook_form().
forum_form_alter in modules/forum/forum.module
Implementation of hook_form_alter().
forum_form_container in modules/forum/forum.module
Returns a form for adding a container to the forum vocabulary
forum_form_forum in modules/forum/forum.module
Returns a form for adding a forum to the forum vocabulary
forum_form_main in modules/forum/forum.module
forum_form_submit in modules/forum/forum.module
Process forum form and container form submissions.
forum_get_topics in modules/forum/forum.module
forum_help in modules/forum/forum.module
Реализация hook_help().
forum_menu in modules/forum/forum.module
Реализация hook_menu().
forum_node_info in modules/forum/forum.module
Реализация hook_node_info().
forum_overview in modules/forum/forum.module
Returns an overview list of existing forums and containers
forum_validate in modules/forum/forum.module
Implementation of hook_validate().
help_help in modules/help/help.module
Реализация hook_help().
help_main in modules/help/help.module
Menu callback; prints a page listing a glossary of Drupal terminology.
help_menu in modules/help/help.module
Реализация hook_menu().
help_page in modules/help/help.module
Menu callback; prints a page listing general help for all modules.
hook_auth in developer/hooks/authentication.php
Проверяет аутентификацию пользователя.
hook_block in developer/hooks/core.php
Определяет блок или набор блоков.
hook_filter in developer/hooks/core.php
Определяет фильтры пользовательского ввода.
hook_filter_tips in developer/hooks/core.php
Предоставляет советы по использованию фильтров пользовательского ввода.
hook_form in developer/hooks/node.php
Показывает форму редактирования ноды.
hook_form_alter in developer/hooks/core.php
Позволяет вносить изменения в форму перед её показом.
hook_help in developer/hooks/core.php
Предоставляет контекстную справку для пользователей.
hook_link in developer/hooks/core.php
Определяет внутренние ссылки Drupal.
hook_mail_alter in developer/hooks/core.php
Alter any aspect of the emails sent by Drupal. You can use this hook to add a common site footer to all outgoing emails; add extra header fields and/or modify the mails sent out in any way. HTML-izing the outgoing mails is one possibility. See also...
hook_menu in developer/hooks/core.php
Определяет пункты меню и обратный вызов страниц.
hook_nodeapi in developer/hooks/core.php
Выполняет действия над нодами.
hook_node_info in developer/hooks/node.php
Определяет типы нод, которые предоставляет модуль.
hook_node_operations in developer/hooks/core.php
Add mass node operations.
hook_prepare in developer/hooks/node.php
Этот хук используется модулями, которые работают с нодами. Он вызывается после загрузки ноды, но перед тем, как нода будет отображена в форме добавления/редактирования.
hook_requirements in developer/hooks/install.php
Check installation requirements that need to be satisfied.
hook_search in developer/hooks/core.php
Определяет пользовательскую функцию поиска.
hook_user in developer/hooks/core.php
Выполняет действия с учётными записями пользователей.
hook_user_operations in developer/hooks/core.php
Добавляет массовую операцию над пользователями.
hook_validate in developer/hooks/node.php
Проверяет форму редактирования ноды.
hook_view in developer/hooks/node.php
Показывает ноду.
hook_xmlrpc in developer/hooks/core.php
Регистрирует обработчики XML-RPC.
image_gd_settings in includes/image.inc
Retrieve settings for the GD2 toolkit.
image_get_available_toolkits in includes/image.inc
Return a list of available toolkits.
image_toolkit_invoke in includes/image.inc
Invokes the given method using the currently selected toolkit.
legacy_filter in modules/legacy/legacy.module
Implementation of hook_filter(). Handles URL upgrades from Drupal 4.1.
legacy_help in modules/legacy/legacy.module
Реализация hook_help().
legacy_menu in modules/legacy/legacy.module
Реализация hook_menu().
locale_add_language_form in includes/locale.inc
locale_add_language_form_validate in includes/locale.inc
Validate the language addition form.
locale_admin_manage_delete_form in modules/locale/locale.module
User interface for the language deletion confirmation screen.
locale_admin_manage_delete_form_submit in modules/locale/locale.module
Process language deletion submissions.
locale_custom_language_form in includes/locale.inc
locale_help in modules/locale/locale.module
Реализация hook_help().
locale_menu in modules/locale/locale.module
Реализация hook_menu().
locale_string_delete_form in modules/locale/locale.module
User interface for the string deletion confirmation screen.
locale_user in modules/locale/locale.module
Реализация hook_user().
menu_configure in modules/menu/menu.module
Menu callback; presents menu configuration options.
menu_confirm_disable_item in modules/menu/menu.module
Menu callback; hide a menu item.
menu_confirm_disable_item_submit in modules/menu/menu.module
menu_edit_item_form in modules/menu/menu.module
Present the menu item editing form.
menu_edit_item_save in modules/menu/menu.module
Save changes to a menu item into the database.
menu_edit_menu_form in modules/menu/menu.module
Menu callback; handle the adding/editing of a new menu.
menu_form_alter in modules/menu/menu.module
Implementation of hook_form_alter(). Add menu item fields to the node form.
menu_get_active_breadcrumb in includes/menu.inc
Получает хлебные крошки для текущей страницы, определенные активным путем.
menu_help in modules/menu/menu.module
Реализация hook_help().
menu_item_delete_form in modules/menu/menu.module
Menu callback; delete a single custom item.
menu_item_delete_form_submit in modules/menu/menu.module
Process menu delete form submissions.
menu_menu in modules/menu/menu.module
Реализация hook_menu().
menu_overview_tree in modules/menu/menu.module
Present the menu tree, rendered along with links to edit menu items.
menu_overview_tree_rows in modules/menu/menu.module
menu_parent_options in modules/menu/menu.module
Return a list of menu items that are valid possible parents for the given menu item. The list excludes the given item and its children.
menu_primary_links in includes/menu.inc
Returns an array containing the primary links. Can optionally descend from the root of the Primary links menu towards the current node for a specified number of levels and return that submenu. Used to generate a primary/secondary menu from different...
menu_reset_item in modules/menu/menu.module
Menu callback; reset a single modified item.
menu_reset_item_submit in modules/menu/menu.module
Process menu reset item form submissions.
multipage_form_example_custom_validate in developer/examples/multipage_form_example.module
Validate our form.
multipage_form_example_form in developer/examples/multipage_form_example.module
Implementation of hook_form() for multipage_form_example. We don't set ANY #required attributes here - we leave that up to multipage_form_example_pre_render().
multipage_form_example_form_alter in developer/examples/multipage_form_example.module
Implementation of hook_form_alter(). Here, we set up the 'page' field, which keeps track of what stage the form is in.
multipage_form_example_help in developer/examples/multipage_form_example.module
Реализация hook_help().
multipage_form_example_menu in developer/examples/multipage_form_example.module
Реализация hook_menu().
multipage_form_example_node_info in developer/examples/multipage_form_example.module
Реализация hook_node_info().
multipage_form_example_pre_render in developer/examples/multipage_form_example.module
The #pre_render of a form allows us to make changes AFTER validation (unlike hook_form_alter()), but BEFORE the form has actually been displayed. We use it to control which form elements are shown, which are hidden, and which values to set based on...
nodeapi_example_form_alter in developer/examples/nodeapi_example.module
Реализация hook_form_alter().
nodeapi_example_nodeapi in developer/examples/nodeapi_example.module
Реализация hook_nodeapi().
node_access_example_form_alter in developer/examples/node_access_example.module
Реализация hook_form_alter()
node_access_example_help in developer/examples/node_access_example.module
Реализация hook_help().
node_add in modules/node/node.module
Present a node submission form or a set of links to such forms.
node_admin_nodes in modules/node/node.module
node_admin_nodes_submit in modules/node/node.module
Submit the node administration update form.
node_admin_nodes_validate in modules/node/node.module
node_block in modules/node/node.module
Реализация hook_block().
node_configure in modules/node/node.module
Menu callback; presents general node configuration options.
node_configure_rebuild_confirm in modules/node/node.module
Menu callback: confirm rebuilding of permissions.
node_configure_rebuild_confirm_submit in modules/node/node.module
Handler for wipe confirmation
node_configure_validate in modules/node/node.module
Form validate callback.
node_delete in modules/node/node.module
Delete a node.
node_delete_confirm in modules/node/node.module
Menu callback -- ask for confirmation of node deletion
node_example_form in developer/examples/node_example.module
Реализация hook_form().
node_example_node_info in developer/examples/node_example.module
Реализация hook_node_info(). Эта функция заменяет hook_node_name() и hook_node_types() из 4.6. Drupal 5 значительно расширяет этот хук.
node_example_validate in developer/examples/node_example.module
Реализация hook_validate().
node_feed in modules/node/node.module
A generic function for generating RSS feeds from a set of nodes.
node_filters in modules/node/node.module
List node administration filters that can be applied.
node_filter_form in modules/node/node.module
Return form for node administration filters.
node_filter_form_submit in modules/node/node.module
Process result from node administration filter form.
node_form in modules/node/node.module
Generate the node add/edit form array.
node_form_add_preview in modules/node/node.module
node_form_alter in modules/node/node.module
Implementation of hook_form_alter().
node_form_submit in modules/node/node.module
node_help in modules/node/node.module
Реализация hook_help().
node_link in modules/node/node.module
Реализация hook_link().
node_menu in modules/node/node.module
Реализация hook_menu().
node_multiple_delete_confirm in modules/node/node.module
node_multiple_delete_confirm_submit in modules/node/node.module
node_node_operations in modules/node/node.module
Implementation of hook_node_operations().
node_overview_types in modules/node/content_types.inc
Displays the content type admin overview page.
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_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_delete in modules/node/node.module
Delete the revision with specified revision number. A 'delete revision' nodeapi event is invoked when a revision is deleted.
node_revision_delete_confirm in modules/node/node.module
Ask confirmation for revision deletion to prevent against CSRF attacks.
node_revision_delete_confirm_submit in modules/node/node.module
node_revision_overview in modules/node/node.module
Generate an overview table of older revisions of a node.
node_revision_revert in modules/node/node.module
Revert to the revision with the specified revision number. A node and nodeapi 'update' event is triggered (via the node_save() call) when a revision is reverted.
node_revision_revert_confirm in modules/node/node.module
Ask for confirmation of the reversion to prevent against CSRF attacks.
node_revision_revert_confirm_submit in modules/node/node.module
node_search in modules/node/node.module
Implementation of hook_search().
node_type_delete_confirm in modules/node/content_types.inc
Menu callback; delete a single content type.
node_type_delete_confirm_submit in modules/node/content_types.inc
Process content type delete confirm submissions.
node_type_form in modules/node/content_types.inc
Generates the node type editing form.
node_type_form_submit in modules/node/content_types.inc
Implementation of hook_form_submit().
node_type_form_validate in modules/node/content_types.inc
Implementation of hook_form_validate().
node_validate in modules/node/node.module
Perform validation checks on the given node.
page_example_help in developer/examples/page_example.module
Реализация hook_help().
page_example_menu in developer/examples/page_example.module
Реализация hook_menu().
password_confirm_validate in includes/form.inc
Validate password_confirm element.
path_admin_delete in modules/path/path.module
Post-confirmation; delete an URL alias.
path_admin_delete_confirm in modules/path/path.module
Menu callback; confirms deleting an URL alias
path_form in modules/path/path.module
Return a form for editing or creating an individual URL alias.
path_form_alter in modules/path/path.module
Implementation of hook_form_alter().
path_form_submit in modules/path/path.module
Save a new URL alias to the database.
path_form_validate in modules/path/path.module
Verify that a new URL alias is valid
path_help in modules/path/path.module
Реализация hook_help().
path_menu in modules/path/path.module
Реализация hook_menu().
path_nodeapi in modules/path/path.module
Implementation of hook_nodeapi().
path_overview in modules/path/path.module
Return a listing of all defined URL aliases.
phptemplate_comment in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_comment function to be passed into a pluggable template engine.
phptemplate_comment_wrapper in themes/garland/template.php
Allow themable wrapping of all comments.
phptemplate_node in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_node function to be passed into a pluggable template engine.
phptemplate_regions in themes/engines/phptemplate/phptemplate.engine
Declare the available regions implemented by this engine.
ping_help in modules/ping/ping.module
Реализация hook_help().
ping_ping in modules/ping/ping.module
Implementation of hook_ping().
poll_block in modules/poll/poll.module
Реализация hook_block().
poll_cancel in modules/poll/poll.module
Callback for canceling a vote
poll_cancel_form in modules/poll/poll.module
poll_form in modules/poll/poll.module
Реализация hook_form().
poll_help in modules/poll/poll.module
Реализация hook_help().
poll_menu in modules/poll/poll.module
Реализация hook_menu().
poll_node_info in modules/poll/poll.module
Реализация hook_node_info().
poll_page in modules/poll/poll.module
poll_validate in modules/poll/poll.module
Implementation of hook_validate().
poll_view in modules/poll/poll.module
Реализация hook_view().
poll_view_voting in modules/poll/poll.module
Generates the voting form for a poll.
poll_vote in modules/poll/poll.module
Callback for processing a vote
poll_votes in modules/poll/poll.module
Callback for the 'votes' tab for polls you can see other votes on
profile_admin_overview in modules/profile/profile.module
Menu callback; display a listing of all editable profile fields.
profile_block in modules/profile/profile.module
Реализация hook_block().
profile_browse in modules/profile/profile.module
Menu callback; display a list of user information.
profile_field_delete in modules/profile/profile.module
Menu callback; deletes a field from all user profiles.
profile_field_delete_submit in modules/profile/profile.module
Process a field delete form submission.
profile_field_form in modules/profile/profile.module
Menu callback: Generate a form to add/edit a user profile field.
profile_field_form_submit in modules/profile/profile.module
Process profile_field_form submissions.
profile_field_form_validate in modules/profile/profile.module
Validate profile_field_form submissions.
profile_help in modules/profile/profile.module
Реализация hook_help().
profile_menu in modules/profile/profile.module
Реализация hook_menu().
profile_validate_profile in modules/profile/profile.module
search_admin_settings in modules/search/search.module
Menu callback; displays the search module settings page.
search_admin_settings_validate in modules/search/search.module
Validate callback.
search_block in modules/search/search.module
Реализация hook_block().
search_box in modules/search/search.module
Выводит форму поиска в блок и в специальную область в текущей теме.
search_form in modules/search/search.module
Render a search form.
search_form_submit in modules/search/search.module
Process a search form submission.
search_help in modules/search/search.module
Реализация hook_help().
search_menu in modules/search/search.module
Реализация hook_menu().
search_view in modules/search/search.module
Menu callback; presents the search form and/or search results.
search_wipe_confirm in modules/search/search.module
Menu callback: confirm wiping of the index.
search_wipe_confirm_submit in modules/search/search.module
Handler for wipe confirmation
statistics_access_log in modules/statistics/statistics.module
statistics_access_logging_settings in modules/statistics/statistics.module
statistics_block in modules/statistics/statistics.module
Реализация hook_block().
statistics_help in modules/statistics/statistics.module
Реализация hook_help().
statistics_menu in modules/statistics/statistics.module
Реализация hook_menu().
statistics_node_tracker in modules/statistics/statistics.module
statistics_recent_hits in modules/statistics/statistics.module
Menu callback; presents the 'recent hits' page.
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
system_admin_by_module in modules/system/system.module
Menu callback; prints a listing of admin tasks for each installed module.
system_admin_theme_settings in modules/system/system.module
This function allows selection of the theme to show in administration sections.
system_clean_url_settings in modules/system/system.module
system_date_time_settings in modules/system/system.module
system_error_reporting_settings in modules/system/system.module
system_file_system_settings in modules/system/system.module
system_get_module_admin_tasks in modules/system/system.module
system_help in modules/system/system.module
Реализация hook_help().
system_image_toolkit_settings in modules/system/system.module
system_main_admin_page in modules/system/system.module
Provide the administration overview page.
system_menu in modules/system/system.module
Реализация hook_menu().
system_modules in modules/system/system.module
Menu callback; provides module enable/disable interface.
system_modules_confirm_form in modules/system/system.module
system_modules_submit in modules/system/system.module
Submit callback; handles modules form submission.
system_modules_uninstall in modules/system/system.module
Builds a form of currently disabled modules.
system_modules_uninstall_confirm_form in modules/system/system.module
Confirm uninstall of selected modules.
system_modules_uninstall_submit in modules/system/system.module
Processes the submitted uninstall form.
system_modules_uninstall_validate in modules/system/system.module
Validates the submitted uninstall form.
system_performance_settings in modules/system/system.module
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.
system_rss_feeds_settings in modules/system/system.module
system_run_cron in modules/system/system.module
Menu callback: run cron manually.
system_settings_form in modules/system/system.module
Добавляет кнопки по умолчанию и устанавливает их префикс
system_settings_form_submit in modules/system/system.module
Execute the system_settings_form.
system_site_information_settings in modules/system/system.module
system_site_maintenance_settings in modules/system/system.module
system_sql in modules/system/system.module
Menu callback: return information about PHP.
system_themes in modules/system/system.module
Menu callback; displays a listing of all themes.
system_themes_submit in modules/system/system.module
system_theme_select_form in modules/system/system.module
Returns a fieldset containing the theme select form.
system_theme_settings in modules/system/system.module
Menu callback; display theme configuration for entire site and individual themes.
system_theme_settings_submit in modules/system/system.module
system_update_1005 in modules/system/system.install
system_update_1010 in modules/system/system.install
system_user in modules/system/system.module
Реализация hook_user().
tablesort_header in includes/tablesort.inc
Format a column header.
taxonomy_admin_term_edit in modules/taxonomy/taxonomy.module
Page to edit a vocabulary term.
taxonomy_admin_vocabulary_edit in modules/taxonomy/taxonomy.module
Page to edit a vocabulary.
taxonomy_form in modules/taxonomy/taxonomy.module
Generate a form element for selecting terms from a vocabulary.
taxonomy_form_alter in modules/taxonomy/taxonomy.module
Implementation of hook_form_alter(). Generate a form for selecting terms to associate with a node.
taxonomy_form_term in modules/taxonomy/taxonomy.module
taxonomy_form_term_submit in modules/taxonomy/taxonomy.module
Accept the form submission for a taxonomy term and save the result.
taxonomy_form_vocabulary in modules/taxonomy/taxonomy.module
Выводит форму для добавления и редактирования словарей.
taxonomy_form_vocabulary_submit in modules/taxonomy/taxonomy.module
Accept the form submission for a vocabulary and save the results.
taxonomy_help in modules/taxonomy/taxonomy.module
Реализация hook_help().
taxonomy_menu in modules/taxonomy/taxonomy.module
Реализация hook_menu().
taxonomy_node_validate in modules/taxonomy/taxonomy.module
Make sure incoming vids are free tagging enabled.
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_overview_vocabularies in modules/taxonomy/taxonomy.module
List and manage vocabularies.
taxonomy_render_nodes in modules/taxonomy/taxonomy.module
Принимает результат вызова pager_query(), такой как, например, возвращает taxonomy_select_nodes(), и форматирует каждую ноду вместе с листалкой страниц.
taxonomy_term_confirm_delete in modules/taxonomy/taxonomy.module
taxonomy_term_confirm_delete_submit in modules/taxonomy/taxonomy.module
taxonomy_vocabulary_confirm_delete in modules/taxonomy/taxonomy.module
taxonomy_vocabulary_confirm_delete_submit in modules/taxonomy/taxonomy.module
theme_admin_page in modules/system/system.module
Форматирует административную страницу для отображения.
theme_aggregator_block_item in modules/aggregator/aggregator.module
Format an individual feed item for display in the block.
theme_aggregator_feed in modules/aggregator/aggregator.module
Format a news feed.
theme_aggregator_page_item in modules/aggregator/aggregator.module
Format an individual feed item for display on the aggregator page.
theme_aggregator_page_list in modules/aggregator/aggregator.module
theme_aggregator_summary_item in modules/aggregator/aggregator.module
Return a themed item heading for summary pages located at 'aggregator/sources' and 'aggregator/categories'.
theme_block_admin_display in modules/block/block.module
Theme main block administration form submission.
theme_book_admin_table in modules/book/book.module
theme_book_navigation in modules/book/book.module
Prepares the links to children (TOC) and forward/backward navigation for a node presented as a book page.
theme_color_scheme_form in modules/color/color.module
Theme color form.
theme_comment in modules/comment/comment.module
theme_comment_admin_overview in modules/comment/comment.module
Темизирует форму комментирования администратора.
theme_comment_block in modules/comment/comment.module
Returns a formatted list of recent comments to be displayed in the comment block.
theme_comment_controls in modules/comment/comment.module
Темизирует область(бокс) контроля комментариев, где пользователь может изменить отображение по умолчанию и упорядочить их показ.
theme_comment_folded in modules/comment/comment.module
theme_comment_post_forbidden in modules/comment/comment.module
Темизирует уведомление "вы не можете оставить комментарий".
theme_feed_icon in includes/theme.inc
Возвращает код, который выдает иконку новостной ленты.
theme_filter_admin_order in modules/filter/filter.module
Темизирует форму конфигурации порядка фильтров.
theme_filter_admin_overview in modules/filter/filter.module
theme_filter_tips in modules/filter/filter.module
Format a set of filter tips.
theme_filter_tips_more_info in modules/filter/filter.module
theme_form_element in includes/form.inc
Возвращает темизированный элемент формы.
theme_forum_display in modules/forum/forum.module
Format the forum body.
theme_forum_list in modules/forum/forum.module
Format the forum listing.
theme_forum_topic_list in modules/forum/forum.module
Format the topic listing.
theme_forum_topic_navigation in modules/forum/forum.module
Format the next/previous forum topic navigation links.
theme_locale_admin_manage_screen in includes/locale.inc
Theme the locale admin manager form.
theme_mark in includes/theme.inc
Возвращает темизированный маркер, полезный для маркировки нового или обновленного содержимого.
theme_more_help_link in includes/theme.inc
Returns code that emits the 'more help'-link.
theme_multipage_form_example in developer/examples/multipage_form_example.module
A custom theme function.
theme_multipage_form_example_node_form in developer/examples/multipage_form_example.module
theme_node in includes/theme.inc
Возвращает темизированную ноду.
theme_nodeapi_example_rating in developer/examples/nodeapi_example.module
Пользовательская функция темизации.
theme_node_admin_nodes in modules/node/node.module
Theme node administration overview.
theme_node_example_order_info in developer/examples/node_example.module
Пользовательская функция темизации.
theme_node_filters in modules/node/node.module
Theme node administration filter selector.
theme_node_log_message in modules/node/node.module
Темизирует сообщения системного журнала.
theme_node_preview in modules/node/node.module
Отображает предпросмотр ноды во время ее создания и редактирования.
theme_node_search_admin in modules/node/node.module
theme_pager in includes/pager.inc
Темизирует "листалку" страниц.
theme_pager_link in includes/pager.inc
Форматирует ссылку на определенную запрошенную страницу.
theme_poll_results in modules/poll/poll.module
theme_system_admin_by_module in modules/system/system.module
Темизирует вывод страницы администрирования по модулям.
theme_system_modules in modules/system/system.module
Темизирует форму модулей.
theme_system_modules_uninstall in modules/system/system.module
Темизирует таблицу отключенных на данный момент модулей.
theme_system_themes in modules/system/system.module
theme_system_theme_select_form in modules/system/system.module
Темизирует форму выбора темы.
theme_tablesort_indicator in includes/theme.inc
Return a themed sort icon.
theme_table_select_header_cell in includes/theme.inc
Returns a header cell for tables that have a select all functionality.
theme_upload_attachments in modules/upload/upload.module
Отображение прикрепленных файлов в виде таблицы.
theme_upload_form_current in modules/upload/upload.module
Темизирует список прикрепленных файлов (вложений).
theme_username in includes/theme.inc
Форматирует имя пользователя.
theme_user_admin_account in modules/user/user.module
Theme user administration overview.
theme_user_admin_new_role in modules/user/user.module
theme_user_admin_perm in modules/user/user.module
Темизирует страницу управления разрешениями.
theme_user_filters in modules/user/user.module
Theme user administration filter selector.
theme_user_picture in modules/user/user.module
theme_xml_icon in includes/theme.inc
Возвращает код, который отображает иконку XML.
throttle_admin_settings in modules/throttle/throttle.module
throttle_admin_settings_validate in modules/throttle/throttle.module
throttle_exit in modules/throttle/throttle.module
Implementation of hook_exit().
throttle_help in modules/throttle/throttle.module
Реализация hook_help().
throttle_menu in modules/throttle/throttle.module
tracker_help in modules/tracker/tracker.module
Реализация hook_help().
tracker_menu in modules/tracker/tracker.module
Реализация hook_menu().
tracker_page in modules/tracker/tracker.module
Menu callback. Prints a listing of active nodes on the site.
upload_admin_settings in modules/upload/upload.module
Menu callback for the upload settings form.
upload_admin_settings_validate in modules/upload/upload.module
Form API callback to validate the upload settings form.
upload_form_alter in modules/upload/upload.module
upload_help in modules/upload/upload.module
Реализация hook_help().
upload_js in modules/upload/upload.module
Коллбэк меню для JavaScript загрузок файлов.
upload_link in modules/upload/upload.module
Реализация hook_link().
upload_menu in modules/upload/upload.module
Реализация hook_menu().
upload_munge_filename in modules/upload/upload.module
Munge the filename as needed for security purposes.
user_admin in modules/user/user.module
user_admin_access in modules/user/user.module
Menu callback: list all access rules
user_admin_access_add in modules/user/user.module
Menu callback: add an access rule
user_admin_access_check_submit in modules/user/user.module
user_admin_access_check_validate in modules/user/user.module
user_admin_access_delete_confirm in modules/user/user.module
Menu callback: delete an access rule
user_admin_access_delete_confirm_submit in modules/user/user.module
user_admin_access_edit in modules/user/user.module
Menu callback: edit an access rule
user_admin_access_form in modules/user/user.module
user_admin_access_form_submit in modules/user/user.module
Submit callback for user_admin_access_form().
user_admin_account in modules/user/user.module
user_admin_account_submit in modules/user/user.module
Submit the user administration update form.
user_admin_account_validate in modules/user/user.module
user_admin_check_host in modules/user/user.module
user_admin_check_mail in modules/user/user.module
user_admin_check_user in modules/user/user.module
user_admin_perm in modules/user/user.module
Menu callback: administer permissions.
user_admin_perm_submit in modules/user/user.module
user_admin_role in modules/user/user.module
Menu callback: administer roles.
user_admin_role_submit in modules/user/user.module
user_admin_role_validate in modules/user/user.module
user_admin_settings in modules/user/user.module
user_authenticate in modules/user/user.module
user_block in modules/user/user.module
Реализация hook_block().
user_confirm_delete in modules/user/user.module
user_delete in modules/user/user.module
Delete a user.
user_edit in modules/user/user.module
user_edit_form in modules/user/user.module
user_edit_submit in modules/user/user.module
user_edit_validate in modules/user/user.module
user_filters in modules/user/user.module
List user administration filters that can be applied.
user_filter_form in modules/user/user.module
Return form for user administration filters.
user_filter_form_submit in modules/user/user.module
Process result from user administration filter form.
user_help in modules/user/user.module
Реализация hook_help().
user_login in modules/user/user.module
user_login_block in modules/user/user.module
user_login_submit in modules/user/user.module
user_login_validate in modules/user/user.module
user_logout in modules/user/user.module
Menu callback; logs the current user out, and redirects to the home page.
user_menu in modules/user/user.module
Реализация hook_menu().
user_multiple_delete_confirm in modules/user/user.module
user_multiple_delete_confirm_submit in modules/user/user.module
user_pass in modules/user/user.module
user_pass_reset in modules/user/user.module
Menu callback; process one time login link and redirects to the user page on success.
user_pass_submit in modules/user/user.module
user_pass_validate in modules/user/user.module
user_register in modules/user/user.module
user_register_submit in modules/user/user.module
user_search in modules/user/user.module
Реализация hook_search().
user_user in modules/user/user.module
Реализация hook_user().
user_user_operations in modules/user/user.module
Implementation of hook_user_operations().
user_validate_mail in modules/user/user.module
user_validate_name in modules/user/user.module
Verify the syntax of the given name.
user_validate_picture in modules/user/user.module
watchdog_event in modules/watchdog/watchdog.module
Menu callback; displays details about a log message.
watchdog_form_overview in modules/watchdog/watchdog.module
watchdog_help in modules/watchdog/watchdog.module
Реализация hook_help().
watchdog_menu in modules/watchdog/watchdog.module
Реализация hook_menu().
watchdog_overview in modules/watchdog/watchdog.module
Menu callback; displays a listing of log messages.
watchdog_top in modules/watchdog/watchdog.module
Menu callback; generic function to display a page of the most frequent watchdog events of a specified type.
xmlrpc_server in includes/xmlrpcs.inc
The main entry point for XML-RPC requests.
xmlrpc_server_call in includes/xmlrpcs.inc
Dispatch the request and any parameters to the appropriate handler.
xmlrpc_server_method_signature in includes/xmlrpcs.inc
XML-RPC method system.methodSignature maps to this function.
xmlrpc_server_multicall in includes/xmlrpcs.inc
_comment_delete_thread in modules/comment/comment.module
_comment_form_submit in modules/comment/comment.module
_comment_get_modes in modules/comment/comment.module
Return an array of viewing modes for comment listings.
_comment_get_orders in modules/comment/comment.module
Return an array of viewing orders for comment listings.
_filter_html_settings in modules/filter/filter.module
Settings for the HTML filter.
_filter_url_settings in modules/filter/filter.module
Settings for URL filter.
_form_validate in includes/form.inc
Performs validation on form elements. First ensures required fields are completed, #maxlength is not exceeded, and selected options were in the list of options given to the user. Then calls user-defined validators.
_forum_format in modules/forum/forum.module
Formats a topic for display
_forum_get_vid in modules/forum/forum.module
Returns the vocabulary id for forum navigation.
_forum_parent_select in modules/forum/forum.module
Returns a select box for available parent terms
_locale_add_language in includes/locale.inc
Helper function to add a language
_locale_admin_import in includes/locale.inc
User interface for the translation import screen.
_locale_admin_import_submit in includes/locale.inc
Process the locale import form submission.
_locale_admin_manage_screen in includes/locale.inc
User interface for the language management screen.
_locale_admin_manage_screen_submit in includes/locale.inc
Process locale admin manager form submissions.
_locale_export_po in includes/locale.inc
Exports a Portable Object (Template) file for a language
_locale_export_pot_form in includes/locale.inc
_locale_export_po_form in includes/locale.inc
_locale_import_parse_plural_forms in includes/locale.inc
Parses a Plural-Forms entry from a Gettext Portable Object file header
_locale_import_po in includes/locale.inc
Parses Gettext Portable Object file information and inserts into database
_locale_prepare_iso_list in includes/locale.inc
Prepares the language code list for a select form item with only the unsupported ones
_locale_string_delete in includes/locale.inc
Delete a language string.
_locale_string_edit in includes/locale.inc
User interface for string editing.
_locale_string_edit_submit in includes/locale.inc
Process string editing form submissions. Saves all translations of one string submitted from a form.
_locale_string_seek in includes/locale.inc
Perform a string search and display results in a table
_locale_string_seek_form in includes/locale.inc
User interface for the string search screen
_menu_build in includes/menu.inc
Build the menu by querying both modules and the database.
_menu_site_is_offline in includes/menu.inc
Возвращает TRUE, если сайт находится в автономном режиме "на обслуживании".
_node_type_set_defaults in modules/node/node.module
Устанавливает значения по умолчанию, для типа нод, определенного через hook_node_info().
_phptemplate_default in themes/engines/phptemplate/phptemplate.engine
Default callback for PHPTemplate.
_profile_field_types in modules/profile/profile.module
_profile_form_explanation in modules/profile/profile.module
_system_sql in modules/system/system.module
_upload_form in modules/upload/upload.module
_upload_image in modules/upload/upload.module
Check an upload, if it is an image, make sure it fits within the maximum dimensions allowed.
_upload_validate in modules/upload/upload.module
_user_edit_validate in modules/user/user.module
_user_mail_text in modules/user/user.module
_xmlrpc in includes/xmlrpc.inc
Execute an XML remote procedural call. This is private function; call xmlrpc() in common.inc instead of this function.

Код

<?php
function t($string, $args = 0) {
  global $locale;
  if (function_exists('locale') && $locale != 'en') {
    $string = locale($string);
  }
  if (!$args) {
    return $string;
  }
  else {
    // Transform arguments before inserting them
    foreach ($args as $key => $value) {
      switch ($key[0]) {
        // Escaped only
        case '@':
          $args[$key] = check_plain($value);
        break;
        // Escaped and placeholder
        case '%':
        default:
          $args[$key] = theme('placeholder', $value);
          break;
        // Pass-through
        case '!':
      }
    }
    return strtr($string, $args);
  }
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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