t
includes/common.inc, строка 857
- Версии
- 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 — текст нужно вставляется «как есть», без предварительной обработки.
@variable — текст пропускается через функциюю фильтрации пользовательского ввода
check_plain()
, во избежание появления нежелательного или вредоносного кода в конечном тексте.drupal_set_title($title = t("@name's blog", array('@name' => $account->name)));
%variable — текст пропускается через фильтр ввода и выделяется (последующим пропусканием его через
theme_placeholder()
(по-умолчанию, текст приобретает курсивное начертание)).
При использовании 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'), ); // Ничего не требуется возвращать. }
После этого, такой код уже не будет неверным:
Несмотря на то, что это довольно заманчивая идея — подавать в 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()
. - В некоторых местах функцию
t()
использовать строго не нужно:- В
'title'
элементовhook_menu()
(так какt()
является коллбеком заголовков (title callback) по-умолчанию). - В сообщениях системного журнала (см.
watchdog()
) (эти сообщения подаются вt()
автоматически). - В описаниях полей таблиц Schema API (переводы описаний там лишние, так как нужны только разработчикам).
- В
Translate strings to the page language or a given language.
Human-readable text that will be displayed somewhere within a page should be run through the t() function.
Examples:
<?php
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'),
);
?>
Any text within t() can be extracted by translators and changed into the equivalent text in their native language.
Special variables called "placeholders" are used to signal dynamic information in a string which should not be translated. Placeholders can also be used for text that may change from time to time (such as link paths) to be changed without requiring updates to translations.
For example:
<?php
$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')));
?>
There are three styles of placeholders:
- !variable, which indicates that the text should be inserted as-is. This is useful for inserting variables into things like e-mail.
<?php
$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, which indicates that the text should be run through check_plain, to escape HTML characters. Use this for any output that's displayed within a Drupal page.
<?php
drupal_set_title($title = t("@name's blog", array('@name' => $account->name)));
?>
- %variable, which indicates that the string should be HTML escaped and highlighted with theme_placeholder() which shows up by default as <em>emphasized</em>.
<?php
$message = t('%name-from sent %name-to an e-mail.', array('%name-from' => $user->name, '%name-to' => $account->name));
?>
When using t(), try to put entire sentences and strings in one t() call. This makes it easier for translators, as it provides context as to what each word refers to. HTML markup within translation strings is allowed, but should be avoided if possible. The exception are embedded links; link titles add a context for translators, so should be kept in the main string.
Here is an example of incorrect usage of t():
<?php
$output .= t('<p>Go to the @contact-page.</p>', array('@contact-page' => l(t('contact page'), 'contact')));
?>
Here is an example of t() used correctly:
<?php
$output .= '<p>'. t('Go to the <a href="@contact-page">contact page</a>.', array('@contact-page' => url('contact'))) .'</p>';
?>
Avoid escaping quotation marks wherever possible.
Incorrect:
<?php
$output .= t('Don\'t click me.');
?>
Correct:
<?php
$output .= t("Don't click me.");
?>
Because t() is designed for handling code-based strings, in almost all cases, the actual string and not a variable must be passed through t().
Extraction of translations is done based on the strings contained in t() calls. If a variable is passed through t(), the content of the variable cannot be extracted from the file for translation.
Incorrect:
<?php
$message = 'An error occurred.';
drupal_set_message(t($message), 'error');
$output .= t($message);
?>
Correct:
<?php
$message = t('An error occurred.');
drupal_set_message($message, 'error');
$output .= $message;
?>
The only case in which variables can be passed safely through t() is when code-based versions of the same strings will be passed through t() (or otherwise extracted) elsewhere.
In some cases, modules may include strings in code that can't use t() calls. For example, a module may use an external PHP application that produces strings that are loaded into variables in Drupal for output. In these cases, module authors may include a dummy file that passes the relevant strings through t(). This approach will allow the strings to be extracted.
Sample external (non-Drupal) code:
<?php
class Time {
public $yesterday = 'Yesterday';
public $today = 'Today';
public $tomorrow = 'Tomorrow';
}
?>
Sample dummy file.
<?php
// Dummy function included in example.potx.inc.
function example_potx() {
$strings = array(
t('Yesterday'),
t('Today'),
t('Tomorrow'),
);
// No return value needed, since this is a dummy function.
}
?>
Having passed strings through t() in a dummy function, it is then okay to pass variables through t().
Correct (if a dummy file was used):
<?php
$time = new Time();
$output .= t($time->today);
?>
However tempting it is, custom data from user input or other non-code sources should not be passed through t(). Doing so leads to the following problems and errors:
- The t() system doesn't support updates to existing strings. When user data is updated, the next time it's passed through t() a new record is created instead of an update. The database bloats over time and any existing translations are orphaned with each update.
- The t() system assumes any data it receives is in English. User data may be in another language, producing translation errors.
- The "Built-in interface" text group in the locale system is used to produce translations for storage in .po files. When non-code strings are passed through t(), they are added to this text group, which is rendered inaccurate since it is a mix of actual interface strings and various user input strings of uncertain origin.
<?php
$item = item_load();
$output .= check_plain(t($item['title']));
?>
Instead, translation of these data can be done through the locale system, either directly or through helper functions provided by contributed modules.
See also
During installation, st() is used in place of t(). Code that may be called during installation or during normal operation should use the get_t() helper function.See also
st()
@see get_t()Parameters
$string A string containing the English string to translate.
$args An associative array of replacements to make after translation. Incidences of any key in this array are replaced with the corresponding value. Based on the first character of the key, the value is escaped and/or themed:
- !variable: inserted as is
- @variable: escape plain text to HTML (check_plain)
- %variable: escape text and theme as a placeholder for user-submitted content (check_plain + theme_placeholder)
Return value
The translated string.
▾ 693 функции вызывают t()
- actions_synchronize in includes/actions.inc
- Синхронизирует действия, переданные из модуля.
- aggregator_admin_remove_feed in modules/aggregator/aggregator.admin.inc
- aggregator_admin_settings in modules/aggregator/aggregator.admin.inc
- Конструктор формы; настройка агрегатора.
- aggregator_block in modules/aggregator/aggregator.module
- Реализация hook_block().
- aggregator_categorize_items in modules/aggregator/aggregator.pages.inc
- Form builder; build the page list form.
- aggregator_categorize_items_submit in modules/aggregator/aggregator.pages.inc
- Process aggregator_categorize_items form submissions.
- aggregator_categorize_items_validate in modules/aggregator/aggregator.pages.inc
- Validate aggregator_categorize_items form submissions.
- aggregator_form_category in modules/aggregator/aggregator.admin.inc
- Конструктор формы; генерирует форму добавления/редактирования/удаления категорий аггрегатора.
- aggregator_form_category_submit in modules/aggregator/aggregator.admin.inc
- Process aggregator_form_category form submissions.
- категория формы накопителя утверждает in modules/aggregator/aggregator.admin.inc
- Утвердите подчинение формы подачи формы накопителя
- aggregator_form_feed in modules/aggregator/aggregator.admin.inc
- Конструктор формы; генерирует форму добавления/редактирования источников фида.
- aggregator_form_feed_submit in modules/aggregator/aggregator.admin.inc
- Process aggregator_form_feed form submissions.
- aggregator_form_feed_validate in modules/aggregator/aggregator.admin.inc
- Validate aggregator_form_feed form submissions.
- aggregator_help in modules/aggregator/aggregator.module
- Реализация hook_help().
- aggregator_page_category in modules/aggregator/aggregator.pages.inc
- Menu callback; displays all the items aggregated in a particular category.
- aggregator_page_last in modules/aggregator/aggregator.pages.inc
- Menu callback; displays the most recent items gathered from any feed.
- aggregator_page_sources in modules/aggregator/aggregator.pages.inc
- Коллбэк меню; показывает все фиды, используемые аггрегатором.
- aggregator_parse_feed in modules/aggregator/aggregator.module
- Parse a feed and store its items.
- aggregator_refresh in modules/aggregator/aggregator.module
- Проверяет фид новостей на наличие новых пунктов.
- aggregator_remove in modules/aggregator/aggregator.module
- Удаляет все элементы из фида.
- aggregator_view in modules/aggregator/aggregator.admin.inc
- Отображает страницу администрирования агрегатора.
- batch_example_batch_2 in developer/examples/batch_example.module
- Batch 2 : load all nodes 5 by 5, 20 times (Multipart operation)
- block_add_block_form_submit in modules/block/block.admin.inc
- Сохраняет новый блок, созданный пользователем.
- block_add_block_form_validate in modules/block/block.admin.inc
- block_admin_configure in modules/block/block.admin.inc
- Коллбэк меню. Отображает форму настройки блока.
- block_admin_configure_submit in modules/block/block.admin.inc
- block_admin_configure_validate in modules/block/block.admin.inc
- block_admin_display_form in modules/block/block.admin.inc
- Generate main blocks administration form.
- block_admin_display_form_submit in modules/block/block.admin.inc
- Process main blocks administration form submission.
- block_box_delete in modules/block/block.admin.inc
- Коллбэк меню; подтверждение удаления блока.
- block_box_delete_submit in modules/block/block.admin.inc
- Удаляет блок, созданный пользователем.
- block_box_form 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_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_init 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_node_info in modules/blog/blog.module
- Реализация hook_node_info().
- blog_page_last in modules/blog/blog.pages.inc
- Коллбэк меню. Показывает страницу Друпал с последними записями в блогах пользователей.
- blog_page_user in modules/blog/blog.pages.inc
- Коллбэк меню. Показывает страницу Друпал с последними записями в блоге данного пользователя.
- 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.admin.inc
- Конструктор формы для управления иерархией книги.
- book_admin_edit_submit in modules/book/book.admin.inc
- Handle submission of the book administrative page form.
- book_admin_edit_validate in modules/book/book.admin.inc
- Check that the book has not been changed while using the form. See alsobook_admin_edit()
- book_admin_overview in modules/book/book.admin.inc
- Возвращает административный краткий обзор всех книг.
- book_admin_settings in modules/book/book.admin.inc
- Строит и возвращает форму настройки книги.
- book_admin_settings_validate in modules/book/book.admin.inc
- Валидатор формы настройки книги.
- book_block in modules/book/book.module
- Реализация hook_block().
- book_build_active_trail in modules/book/book.module
- Build an active trail to show in the breadcrumb.
- book_export in modules/book/book.pages.inc
- Menu callback; Generates various representation of a book page and its children.
- book_form_alter in modules/book/book.module
- Implementation of hook_form_alter(). Adds the book fieldset to the node form. See alsobook_pick_book_submit()
- book_form_node_delete_confirm_alter in modules/book/book.module
- Функция изменения формы подтверждения единичного удаления ноды.
- book_help in modules/book/book.module
- Реализация hook_help().
- book_link in modules/book/book.module
- Реализация hook_link().
- book_outline_form in modules/book/book.pages.inc
- Build the form to handle all book outline operations via the outline tab. See alsobook_outline_form_submit()
- book_outline_form_submit in modules/book/book.pages.inc
- Handles book outline form submissions from the outline tab. See alsobook_outline_form()
- book_remove_form in modules/book/book.pages.inc
- Menu callback; builds a form to confirm removal of a node from the book. See alsobook_remove_form_submit()
- book_remove_form_submit in modules/book/book.pages.inc
- Confirm form submit function to remove a node from the book. See alsobook_remove_form()
- chameleon_comment in themes/chameleon/chameleon.theme
- chameleon_node in themes/chameleon/chameleon.theme
- chameleon_page 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
- Реализация 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_action_info in modules/comment/comment.module
- Реализация hook_action_info().
- comment_admin_overview in modules/comment/comment.admin.inc
- Конструктор формы; генерирует форму с кратким содержанием комментариев для администратора.
- comment_admin_overview_submit in modules/comment/comment.admin.inc
- Process comment_admin_overview form submissions.
- comment_admin_overview_validate in modules/comment/comment.admin.inc
- Validate comment_admin_overview form submissions.
- comment_block in modules/comment/comment.module
- Реализация hook_block().
- comment_confirm_delete in modules/comment/comment.admin.inc
- Конструктор формы. Формирует форму подтверждения удаления единственного комментария.
- comment_confirm_delete_submit in modules/comment/comment.admin.inc
- Process comment_confirm_delete form submissions.
- comment_controls in modules/comment/comment.module
- Формирует форму управления комментариями.
- comment_controls_submit in modules/comment/comment.module
- Process comment_controls form submissions.
- comment_delete in modules/comment/comment.admin.inc
- Коллбек меню; Подтверждение удаления комментария.
- comment_form in modules/comment/comment.module
- Создаёт базовую форму для комментирования, которая будет добавлена к странице с нодой или отображена на отдельной странице.
- comment_form_add_preview in modules/comment/comment.module
- Конструктор формы; Формирует и проверяет форму предпросмотра комментария.
- comment_form_alter in modules/comment/comment.module
- Реализация hook_form_alter().
- comment_help in modules/comment/comment.module
- Реализация hook_help().
- comment_hook_info in modules/comment/comment.module
- Реализация hook_hook_info().
- comment_link in modules/comment/comment.module
- Реализация hook_link().
- comment_links in modules/comment/comment.module
- Формирует управляющие ссылки для комментариев (редактировать, ответить, удалить) на основе прав доступа для текущего пользователя.
- comment_multiple_delete_confirm in modules/comment/comment.admin.inc
- List the selected comments and verify that the admin really wants to delete them.
- comment_multiple_delete_confirm_submit in modules/comment/comment.admin.inc
- Process comment_multiple_delete_confirm form submissions.
- 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.pages.inc
- 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_unpublish_by_keyword_action_form in modules/comment/comment.module
- Конструктор формы. Подготавливает форму для черного списка ключевых слов.
- comment_validate in modules/comment/comment.module
- Проверка данных комментария.
- confirm_form in modules/system/system.module
- Вывод формы подтверждения какого-либо действия.
- contact_admin_categories in modules/contact/contact.admin.inc
- Categories/list tab.
- contact_admin_delete in modules/contact/contact.admin.inc
- Коллбэк меню. Страница удаления категорий.
- contact_admin_delete_submit in modules/contact/contact.admin.inc
- Process category delete form submission.
- contact_admin_edit in modules/contact/contact.admin.inc
- Коллбэк меню; Страница редактирования категорий.
- contact_admin_edit_submit in modules/contact/contact.admin.inc
- Process the contact category edit page form submission.
- contact_admin_edit_validate in modules/contact/contact.admin.inc
- Валидатор формы страницы редактирования категорий контактов.
- contact_admin_settings in modules/contact/contact.admin.inc
- contact_help in modules/contact/contact.module
- Реализация hook_help().
- contact_mail in modules/contact/contact.module
- Реализация hook_mail().
- contact_mail_page in modules/contact/contact.pages.inc
- contact_mail_page_submit in modules/contact/contact.pages.inc
- Process the site-wide contact page form submission.
- contact_mail_page_validate in modules/contact/contact.pages.inc
- Validate the site-wide contact page form submission.
- contact_mail_user in modules/contact/contact.pages.inc
- contact_mail_user_submit in modules/contact/contact.pages.inc
- Process the personal contact page form submission.
- contact_site_page in modules/contact/contact.pages.inc
- Site-wide contact page.
- contact_user in modules/contact/contact.module
- Реализация hook_user().
- contact_user_page in modules/contact/contact.pages.inc
- Страница персональных контактов.
- date_validate in includes/form.inc
- Проверка корректности ввода данных типа date. Запрет ввода дат типа 31 Февраля, 2006.
- dblog_admin_settings in modules/dblog/dblog.admin.inc
- Форма настроек модуля dblog. Смотрите также system_settings_form()
- dblog_event in modules/dblog/dblog.admin.inc
- Коллбэк меню; отображает подробности записи журнала системы.
- dblog_filters in modules/dblog/dblog.admin.inc
- List dblog administration filters that can be applied.
- dblog_filter_form in modules/dblog/dblog.admin.inc
- Возвращает форму для dblog фильтров администрирования. Смотрите alsodblog_filter_form_submit()
- dblog_filter_form_submit in modules/dblog/dblog.admin.inc
- Process result from dblog administration filter form.
- dblog_filter_form_validate in modules/dblog/dblog.admin.inc
- Validate result from dblog administration filter form.
- dblog_help in modules/dblog/dblog.module
- Реализация hook_help().
- dblog_overview in modules/dblog/dblog.admin.inc
- Коллбэк меню; выводит логи сообщений.
- dblog_top in modules/dblog/dblog.admin.inc
- Menu callback; generic function to display a page of the most frequent dblog events of a specified type.
- 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_check_module in includes/install.inc
- Check a module's requirements.
- drupal_mail in includes/mail.inc
- Отправляет сообщения по e-mail.
- drupal_not_found in includes/common.inc
- Генерирует ошибку 404 (страница не найдена) если запрос не удалось обработать.
- drupal_site_offline in includes/common.inc
- Generates a site off-line message.
- drupal_validate_form in includes/form.inc
- Проверяет отправленные пользователем данные формы из $form_state, используя функции проверки, заданные в структурированном массиве формы.
- example_element_demo_form in developer/examples/example_element.module
- This is a simple form to demonstrate how to use the phonenumber element we've defined.
- example_element_phonenumber_expand in developer/examples/example_element.module
- Our process callback to expand the control.
- example_element_phonenumber_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.
- file_check_directory in includes/file.inc
- Check that the directory exists and is writable. Directories need to have execute permissions to be considered a directory by FTP servers, etc.
- file_copy in includes/file.inc
- Копирует файл из одного места в другое. Эта мощная функция работает как расширенная версия функции copy(). Непосредственно перед копированием проверяет правильность $source и $dest и возможность чтения/записи. Копирование файла происходить только если $source и $dest не равны.
- file_destination in includes/file.inc
- Determines the destination path for a file depending on how replacement of existing files should be handled.
- file_move in includes/file.inc
- Перемещает файл в новое место.
- file_munge_filename in includes/file.inc
- Munge the filename as needed for security purposes. For instance the file name 'exploit.php.pps' would become 'exploit.php_.pps'.
- file_save_data in includes/file.inc
- Сохраняет строку в заданный новый файл.
- file_save_upload in includes/file.inc
- Сохраняет загруженный файл в новое место. Исходный файл должен быть загружен и обработан.
- file_validate_extensions in includes/file.inc
- Проверяет соответствует ли окончание файла допустимым расширениям. Пользователь с UID=1 всегда проходит эту проверку.
- file_validate_image_resolution in includes/file.inc
- If the file is an image verify that its dimensions are within the specified maximum and minimum dimensions. Non-image files will be ignored.
- file_validate_is_image in includes/file.inc
- Проверяет, распознаётся ли файл функцией image_get_info() как изображение.
- file_validate_name_length in includes/file.inc
- Check for files with names longer than we can store in the database.
- file_validate_size in includes/file.inc
- Check that the file's size is below certain limits. This check is not enforced for the user #1.
- filter_admin_configure in modules/filter/filter.admin.inc
- Build a form to change the settings for a format's filters.
- filter_admin_configure_page in modules/filter/filter.admin.inc
- Menu callback; display settings defined by a format's filters.
- filter_admin_delete in modules/filter/filter.admin.inc
- Menu callback; confirm deletion of a format. See alsofilter_admin_delete_submit()
- filter_admin_delete_submit in modules/filter/filter.admin.inc
- Process filter delete form submission.
- filter_admin_format_form in modules/filter/filter.admin.inc
- Generate a filter format form. See alsofilter_admin_format_form_validate()
- filter_admin_format_form_submit in modules/filter/filter.admin.inc
- Process filter format form submissions.
- filter_admin_format_form_validate in modules/filter/filter.admin.inc
- Validate filter format form submissions.
- filter_admin_format_page in modules/filter/filter.admin.inc
- Коллбэк меню; Отображает форму форматов фильтра.
- filter_admin_order in modules/filter/filter.admin.inc
- Build the form for ordering filters for a format. See alsotheme_filter_admin_order()
- filter_admin_order_page in modules/filter/filter.admin.inc
- Menu callback; display form for ordering filters for a format.
- filter_admin_order_submit in modules/filter/filter.admin.inc
- Process filter order configuration form submission.
- filter_admin_overview in modules/filter/filter.admin.inc
- Menu callback; Displays a list of all input formats and which one is the default. See alsofilter_admin_overview_submit()
- filter_admin_overview_submit in modules/filter/filter.admin.inc
- 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. Line break converter: Converts newlines into paragraph and break tags. URL and e-mail address...
- 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. See alsofilter_form_validate()
- filter_form_validate in modules/filter/filter.module
- filter_help in modules/filter/filter.module
- Реализация hook_help().
- 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.admin.inc
- Конструктор формы для страницы настроек форума. Смотрите также system_settings_form()
- forum_block in modules/forum/forum.module
- Реализация hook_block().
- forum_confirm_delete in modules/forum/forum.admin.inc
- Returns a confirmation page for deleting a forum taxonomy term.
- forum_confirm_delete_submit in modules/forum/forum.admin.inc
- Implementation of forms api _submit call. Deletes a forum after confirmation.
- forum_enable in modules/forum/forum.install
- 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.admin.inc
- Returns a form for adding a container to the forum vocabulary
- forum_form_forum in modules/forum/forum.admin.inc
- Returns a form for adding a forum to the forum vocabulary
- forum_form_main in modules/forum/forum.admin.inc
- forum_form_submit in modules/forum/forum.admin.inc
- 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_nodeapi in modules/forum/forum.module
- Implementation of hook_nodeapi().
- forum_node_info in modules/forum/forum.module
- Реализация hook_node_info().
- forum_overview in modules/forum/forum.admin.inc
- Returns an overview list of existing forums and containers
- forum_update_6000 in modules/forum/forum.install
- Create the forum vocabulary if does not exist. Assign the vocabulary a low weight so it will appear first in forum topic create and edit forms. Do not just call forum_enable() because in future versions it might do something different.
- help_help in modules/help/help.module
- Реализация hook_help().
- 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_action_info in developer/hooks/core.php
- Информирует триггеры Друпала о новых действиях (actions).
- hook_action_info_alter in developer/hooks/core.php
- Изменяет действия (action), объявленные другим модулем.
- 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_form_FORM_ID_alter in developer/hooks/core.php
- Предоставляет возможность изменить отдельную форму, вместо глобального хука hook_form_alter().
- hook_help in developer/hooks/core.php
- Предоставляет контекстную справку для пользователей.
- hook_hook_info in developer/hooks/core.php
- Показывает список триггеров (событий), к которым Ваш модуль позволяет пользователям назначать действия.
- hook_link in developer/hooks/core.php
- Определяет внутренние ссылки Drupal.
- hook_locale in developer/hooks/core.php
- Позволяет модулям определять их собственные группы текстов, которые могут быть переведены.
- hook_mail_alter in developer/hooks/core.php
- Изменяет любой аспект email отсылаемых Друпал. Вы можете использовать этот хук, чтобы добавить общий нижний колонтитул сайта для всех исходящих писем; добавить дополнительное поле заголовка и/или изменить отправляемые письма любым образом. HTML-изация исходящих писем - одна из возможностей.
- hook_nodeapi in developer/hooks/core.php
- Выполняет действия над нодами.
- hook_node_info in developer/hooks/node.php
- Определяет предоставляемые модулем типы нод.
- hook_node_operations in developer/hooks/core.php
- Добавляет массовые операции над нодами.
- hook_prepare in developer/hooks/node.php
- Этот хук используется модулями, которые работают с нодами. Он вызывается после загрузки ноды, но перед тем, как нода будет отображена в форме добавления/редактирования.
- hook_requirements in developer/hooks/install.php
- Проверяет требования для установки и выдает сообщение о статусе.
- hook_schema in developer/hooks/install.php
- Устанавливает базу данных согласно определенной схемы.
- hook_schema_alter in developer/hooks/core.php
- Вносит изменения в существующие схемы базы данных.
- hook_search in developer/hooks/core.php
- Определяет пользовательскую функцию поиска.
- hook_update_status_alter 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_watchdog in developer/hooks/core.php
- Записывает в журнал сообщения о событиях.
- hook_xmlrpc in developer/hooks/core.php
- Регистрирует обработчики XML-RPC.
- image_gd_info in includes/image.gd.inc
- Retrieve information about the toolkit.
- image_gd_settings in includes/image.gd.inc
- Retrieve settings for the GD2 toolkit.
- image_gd_settings_validate in includes/image.gd.inc
- Validate the submitted GD settings.
- locale_block in modules/locale/locale.module
- Реализация hook_block(). Отображает переключатель языков. Ссылки могут быть предоставлены другими модулями.
- locale_form_alter in modules/locale/locale.module
- Implementation of hook_form_alter(). Adds language fields to forms.
- locale_help in modules/locale/locale.module
- Реализация hook_help().
- locale_languages_configure_form in includes/locale.inc
- Setting for language negotiation options
- locale_languages_configure_form_submit in includes/locale.inc
- Submit function for language negotiation settings.
- locale_languages_custom_form in includes/locale.inc
- Custom language addition form.
- locale_languages_delete_form in includes/locale.inc
- User interface for the language deletion confirmation screen.
- locale_languages_delete_form_submit in includes/locale.inc
- Process language deletion submissions.
- locale_languages_edit_form in includes/locale.inc
- Editing screen for a particular language.
- locale_languages_edit_form_validate in includes/locale.inc
- Validate the language editing form. Reused for custom language addition too.
- locale_languages_overview_form in includes/locale.inc
- User interface for the language overview screen.
- locale_languages_overview_form_submit in includes/locale.inc
- Process language overview form submissions, updating existing languages.
- locale_languages_predefined_form in includes/locale.inc
- Predefined language setup form.
- locale_languages_predefined_form_submit in includes/locale.inc
- Process the language addition form submission.
- locale_languages_predefined_form_validate in includes/locale.inc
- Validate the language addition form.
- locale_language_list in modules/locale/locale.module
- Returns array of language names
- locale_language_name in modules/locale/locale.module
- Возвращает название языка.
- locale_locale in modules/locale/locale.module
- Реализация hook_locale().
- locale_translate_delete_form in includes/locale.inc
- User interface for the string deletion confirmation screen.
- locale_translate_delete_form_submit in includes/locale.inc
- Process string deletion submissions.
- locale_translate_edit_form in includes/locale.inc
- User interface for string editing.
- locale_translate_edit_form_submit in includes/locale.inc
- Process string editing form submissions.
- locale_translate_edit_form_validate in includes/locale.inc
- Validate string editing form submissions.
- locale_translate_export_pot_form in includes/locale.inc
- Форма экспорта шаблона перевода.
- locale_translate_export_po_form in includes/locale.inc
- Форма экспорта выбранного языка в PO-файл.
- locale_translate_import_form in includes/locale.inc
- User interface for the translation import screen.
- locale_translate_import_form_submit in includes/locale.inc
- Process the locale import form submission.
- locale_translate_overview_screen in includes/locale.inc
- Overview screen for translations.
- locale_translate_seek_form in includes/locale.inc
- User interface for the string search screen.
- locale_user in modules/locale/locale.module
- Реализация hook_user().
- menu_configure in modules/menu/menu.admin.inc
- Menu callback; Build the form presenting menu configuration options.
- menu_delete_menu_confirm in modules/menu/menu.admin.inc
- Build a confirm form for deletion of a custom menu.
- menu_delete_menu_confirm_submit in modules/menu/menu.admin.inc
- Delete a custom menu and all items in it.
- menu_edit_item in modules/menu/menu.admin.inc
- Menu callback; Build the menu link editing form.
- menu_edit_item_submit in modules/menu/menu.admin.inc
- Process menu and menu item add/edit form submissions.
- menu_edit_item_validate in modules/menu/menu.admin.inc
- Validate form values for a menu link being added or edited.
- menu_edit_menu in modules/menu/menu.admin.inc
- Menu callback; Build the form that handles the adding/editing of a custom menu.
- menu_edit_menu_validate in modules/menu/menu.admin.inc
- Validates the human and machine-readable names when adding or editing a menu.
- menu_form_alter in modules/menu/menu.module
- Implementation of hook_form_alter(). Adds menu item fields to the node form.
- menu_help in modules/menu/menu.module
- Реализация hook_help().
- menu_item_delete_form in modules/menu/menu.admin.inc
- Build a confirm form for deletion of a single menu link.
- menu_item_delete_form_submit in modules/menu/menu.admin.inc
- Process menu delete form submissions.
- menu_nodeapi in modules/menu/menu.module
- Реализация hook_nodeapi().
- menu_overview_form in modules/menu/menu.admin.inc
- Form for editing an entire menu tree at once.
- menu_reset_item_confirm in modules/menu/menu.admin.inc
- Menu callback; reset a single modified item.
- menu_reset_item_confirm_submit in modules/menu/menu.admin.inc
- Process menu reset item form submissions.
- menu_set_active_trail in includes/menu.inc
- Задает (или получает) активный след текущей страницы - путь к корню в дереве меню.
- 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_rebuild in modules/node/node.module
- Rebuild the node access database. This is occasionally needed by modules that make system-wide changes to access levels.
- node_action_info in modules/node/node.module
- Реализация hook_action_info().
- node_add in modules/node/node.pages.inc
- Выводит форму подтверждения ноды или ряд ссылок на такие формы.
- node_admin_nodes in modules/node/node.admin.inc
- Form builder: Builds the node administration overview.
- node_admin_nodes_validate in modules/node/node.admin.inc
- Validate node_admin_nodes form submissions.
- node_assign_owner_action_form in modules/node/node.module
- node_assign_owner_action_validate in modules/node/node.module
- node_block in modules/node/node.module
- Реализация hook_block().
- node_body_field in modules/node/node.pages.inc
- Return a node body field, with format and teaser.
- node_configure in modules/node/node.admin.inc
- Menu callback; presents general node configuration options.
- node_configure_rebuild_confirm in modules/node/node.admin.inc
- Menu callback: confirm rebuilding of permissions.
- node_delete in modules/node/node.module
- Удаляет ноду.
- node_delete_confirm in modules/node/node.pages.inc
- 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().
- 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.admin.inc
- List node administration filters that can be applied.
- node_filter_form in modules/node/node.admin.inc
- Return form for node administration filters.
- node_filter_form_submit in modules/node/node.admin.inc
- Process result from node administration filter form.
- node_form in modules/node/node.pages.inc
- Генерирует нод, добавляет/редактирует массив формы.
- node_form_alter in modules/node/node.module
- Implementation of hook_form_alter().
- node_form_submit in modules/node/node.pages.inc
- node_help in modules/node/node.module
- Реализация hook_help().
- node_hook_info in modules/node/node.module
- Реализация hook_hook_info().
- node_link in modules/node/node.module
- Реализация hook_link().
- 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.
- node_multiple_delete_confirm in modules/node/node.admin.inc
- node_multiple_delete_confirm_submit in modules/node/node.admin.inc
- node_node_operations in modules/node/node.admin.inc
- Реализация 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_preview in modules/node/node.pages.inc
- Generate a node preview.
- node_revision_delete_confirm in modules/node/node.pages.inc
- node_revision_delete_confirm_submit in modules/node/node.pages.inc
- node_revision_overview in modules/node/node.pages.inc
- Generate an overview table of older revisions of a node.
- node_revision_revert_confirm in modules/node/node.pages.inc
- Ask for confirmation of the reversion to prevent against CSRF attacks.
- node_revision_revert_confirm_submit in modules/node/node.pages.inc
- node_search in modules/node/node.module
- Реализация hook_search().
- node_show in modules/node/node.module
- Generate a page displaying a single node, along with its comments.
- node_teaser_include_verify in modules/node/node.module
- Ensure value of 'teaser_include' checkbox is consistent with other form data.
- 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_unpublish_by_keyword_action_form in modules/node/node.module
- node_validate in modules/node/node.module
- Perform validation checks on the given node.
- openid_authentication in modules/openid/openid.module
- Authenticate a user or attempt registration.
- openid_authentication_page in modules/openid/openid.pages.inc
- Menu callback; Process an OpenID authentication.
- openid_begin in modules/openid/openid.module
- The initial step of OpenID authentication responsible for the following: Perform discovery on the claimed OpenID. If possible, create an association with the Provider's endpoint. Create the authentication request. Perform the appropriate redirect.
- openid_form_alter in modules/openid/openid.module
- Implementation of hook_form_alter : adds OpenID login to the login forms.
- openid_help in modules/openid/openid.module
- Реализация hook_help().
- openid_redirect in modules/openid/openid.inc
- Creates a js auto-submit redirect for (for the 2.x protocol)
- openid_redirect_form in modules/openid/openid.inc
- openid_user in modules/openid/openid.module
- Реализация hook_user().
- openid_user_add in modules/openid/openid.pages.inc
- Form builder; Add an OpenID identity. See alsoopenid_user_add_validate()
- openid_user_add_validate in modules/openid/openid.pages.inc
- openid_user_delete_form in modules/openid/openid.pages.inc
- Present a confirmation form to delete the specified OpenID identity from the system. See alsoopenid_user_delete_form_submit()
- openid_user_delete_form_submit in modules/openid/openid.pages.inc
- openid_user_identities in modules/openid/openid.pages.inc
- Menu callback; Manage OpenID identities for the specified user.
- page_example_baz in developer/examples/page_example.module
- Более сложная реализация коллбэка меню для отображения страницы, которая принимает аргументы.
- page_example_foo in developer/examples/page_example.module
- Простейшая реализация коллбэка меню для отображения страницы.
- page_example_help in developer/examples/page_example.module
- Реализация hook_help().
- 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.admin.inc
- Menu callback; confirms deleting an URL alias
- path_admin_filter_form in modules/path/path.admin.inc
- Return a form to filter URL aliases. See alsopath_admin_filter_form_submit()
- path_admin_form in modules/path/path.admin.inc
- Return a form for editing or creating an individual URL alias. See alsopath_admin_form_validate()
- path_admin_form_submit in modules/path/path.admin.inc
- Save a new URL alias to the database.
- path_admin_form_validate in modules/path/path.admin.inc
- Verify that a new URL alias is valid
- path_admin_overview in modules/path/path.admin.inc
- Return a listing of all defined URL aliases. When filter key passed, perform a standard search on the given key, and return the list of matching URL aliases.
- path_form_alter in modules/path/path.module
- Реализация hook_form_alter().
- path_help in modules/path/path.module
- Реализация hook_help().
- path_nodeapi in modules/path/path.module
- Реализация hook_nodeapi().
- phptemplate_comment_submitted in themes/garland/template.php
- phptemplate_comment_wrapper in themes/garland/template.php
- Allow themable wrapping of all comments.
- phptemplate_node_submitted in themes/garland/template.php
- php_disable in modules/php/php.install
- Реализация hook_disable().
- php_filter in modules/php/php.module
- Implementation of hook_filter(). Contains a basic PHP evaluator.
- php_filter_tips in modules/php/php.module
- Реализация hook_filter_tips().
- php_help in modules/php/php.module
- Реализация hook_help().
- php_install in modules/php/php.install
- Реализация hook_install().
- ping_help in modules/ping/ping.module
- Реализация hook_help().
- poll_block in modules/poll/poll.module
- Реализация hook_block().
- poll_cancel_form in modules/poll/poll.module
- Builds the cancel form for a poll. See alsopoll_cancel()
- poll_form in modules/poll/poll.module
- Реализация hook_form().
- poll_help in modules/poll/poll.module
- Реализация hook_help().
- poll_node_info in modules/poll/poll.module
- Реализация hook_node_info().
- poll_page in modules/poll/poll.pages.inc
- Menu callback to provide a simple list of all polls available.
- 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. See alsopoll_vote()
- poll_view_voting_validate in modules/poll/poll.module
- Validation function for processing votes
- poll_vote in modules/poll/poll.module
- Submit handler for processing a vote
- poll_votes in modules/poll/poll.pages.inc
- Callback for the 'votes' tab for polls you can see other votes on
- profile_admin_overview in modules/profile/profile.admin.inc
- Form builder to display a listing of all editable profile fields. See alsoprofile_admin_overview_submit()
- profile_admin_overview_submit in modules/profile/profile.admin.inc
- Submit handler to update changed profile field weights and categories. See alsoprofile_admin_overview()
- profile_block in modules/profile/profile.module
- Реализация hook_block().
- profile_browse in modules/profile/profile.pages.inc
- Menu callback; display a list of user information.
- profile_field_delete in modules/profile/profile.admin.inc
- Menu callback; deletes a field from all user profiles.
- profile_field_delete_submit in modules/profile/profile.admin.inc
- Process a field delete form submission.
- profile_field_form in modules/profile/profile.admin.inc
- Menu callback: Generate a form to add/edit a user profile field. See alsoprofile_field_form_validate()
- profile_field_form_submit in modules/profile/profile.admin.inc
- Process profile_field_form submissions.
- profile_field_form_validate in modules/profile/profile.admin.inc
- Validate profile_field_form submissions.
- profile_help in modules/profile/profile.module
- Реализация hook_help().
- profile_validate_profile in modules/profile/profile.module
- search_admin_settings in modules/search/search.admin.inc
- Menu callback; displays the search module settings page. See alsosystem_settings_form()
- search_admin_settings_validate in modules/search/search.admin.inc
- Validate callback.
- search_block in modules/search/search.module
- Реализация hook_block().
- search_box in modules/search/search.module
- Конструктор формы; Выводит форму поиска в блок и в специальную область в текущей теме. Смотри alsosearch_box_form_submit()
- search_form in modules/search/search.module
- Выводит форму поиска.
- search_form_submit in modules/search/search.pages.inc
- Process a search form submission.
- search_help in modules/search/search.module
- Реализация hook_help().
- search_view in modules/search/search.pages.inc
- Menu callback; presents the search form and/or search results.
- search_wipe_confirm in modules/search/search.admin.inc
- Menu callback: confirm wiping of the index.
- search_wipe_confirm_submit in modules/search/search.admin.inc
- Handler for wipe confirmation
- statistics_access_log in modules/statistics/statistics.admin.inc
- Menu callback; Displays recent page accesses.
- statistics_access_logging_settings in modules/statistics/statistics.admin.inc
- Form builder; Configure access logging. See alsosystem_settings_form()
- statistics_block in modules/statistics/statistics.module
- Реализация hook_block().
- statistics_help in modules/statistics/statistics.module
- Реализация hook_help().
- statistics_node_tracker in modules/statistics/statistics.pages.inc
- statistics_recent_hits in modules/statistics/statistics.admin.inc
- Menu callback; presents the 'recent hits' page.
- statistics_top_pages in modules/statistics/statistics.admin.inc
- Menu callback; presents the 'top pages' page.
- statistics_top_referrers in modules/statistics/statistics.admin.inc
- Menu callback; presents the 'referrer' page.
- statistics_top_visitors in modules/statistics/statistics.admin.inc
- Menu callback; presents the 'top visitors' page.
- statistics_user_tracker in modules/statistics/statistics.pages.inc
- syslog_admin_settings in modules/syslog/syslog.module
- syslog_facility_list in modules/syslog/syslog.module
- syslog_help in modules/syslog/syslog.module
- Реализация hook_help().
- system_actions_configure in modules/system/system.module
- Menu callback. Create the form for configuration of a single action.
- system_actions_configure_submit in modules/system/system.module
- Обрабатывает переданные значения полей формы system_actions_configure.
- system_actions_delete_form in modules/system/system.module
- Create the form for confirmation of deleting an action. See alsosystem_actions_delete_form_submit()
- system_actions_delete_form_submit in modules/system/system.module
- Process system_actions_delete form submissions.
- system_actions_manage in modules/system/system.module
- Menu callback. Display an overview of available and configured actions.
- system_actions_manage_form in modules/system/system.module
- Define the form for the actions overview page. See alsosystem_actions_manage_form_submit()
- system_action_delete_orphans_post in modules/system/system.module
- Post-deletion operations for deleting action orphans.
- system_action_info in modules/system/system.module
- Реализация hook_action_info().
- system_admin_by_module in modules/system/system.admin.inc
- Menu callback; prints a listing of admin tasks for each installed module.
- system_admin_menu_block_page in modules/system/system.admin.inc
- Представляет единый блок из меню администрирования как страницу. Эта функция часто является "местом назначения" для таких блоков.(прим. переводчика - видимо имеется в виду, что корневой элемент меню часто имеет параметром "page callback" данную функцию, она используется для показа таких элементов, имеющих дочерние). Например, путь 'admin/content/types' должен иметь "место назначения" чтобы соответствовать системе меню Drupal, однако слишком много информации может быть скрыто, поэтому мы указываем содержимое блока.
- system_admin_theme_settings in modules/system/system.admin.inc
- Form builder; This function allows selection of the theme to show in administration sections. See alsosystem_settings_form()
- system_block in modules/system/system.module
- Реализация hook_block().
- system_clean_url_settings in modules/system/system.admin.inc
- Form builder; Configure Clean URL settings. See alsosystem_settings_form()
- system_clear_cache_submit in modules/system/system.admin.inc
- Submit callback; clear system caches.
- system_date_time_settings in modules/system/system.admin.inc
- Form builder; Configure the site date and time settings. See alsosystem_settings_form()
- system_error_reporting_settings in modules/system/system.admin.inc
- Form builder; Configure error reporting settings. See alsosystem_settings_form()
- system_file_system_settings in modules/system/system.admin.inc
- Form builder; Configure the site file handling. See alsosystem_settings_form()
- system_get_module_admin_tasks in modules/system/system.module
- Создаёт список задач предлагаемый указанным модулем.
- system_goto_action_form in modules/system/system.module
- Implementation of a configurable Drupal action. Redirect user to a URL.
- system_help in modules/system/system.module
- Реализация hook_help().
- system_hook_info in modules/system/system.module
- Implementation of hook_hook_info().
- system_image_toolkit_settings in modules/system/system.admin.inc
- Form builder; Configure site image toolkit usage. See alsosystem_settings_form()
- system_main_admin_page in modules/system/system.admin.inc
- Menu callback; Provide the administration overview page.
- system_message_action in modules/system/system.module
- A configurable Drupal action. Sends a message to the current user's screen.
- system_message_action_form in modules/system/system.module
- system_modules in modules/system/system.admin.inc
- Menu callback; provides module enable/disable interface.
- system_modules_confirm_form in modules/system/system.admin.inc
- Display confirmation form for dependencies.
- system_modules_submit in modules/system/system.admin.inc
- Submit callback; handles modules form submission.
- system_modules_uninstall in modules/system/system.admin.inc
- Builds a form of currently disabled modules. See alsosystem_modules_uninstall_validate()
- system_modules_uninstall_confirm_form in modules/system/system.admin.inc
- Confirm uninstall of selected modules.
- system_modules_uninstall_submit in modules/system/system.admin.inc
- Processes the submitted uninstall form.
- system_modules_uninstall_validate in modules/system/system.admin.inc
- Validates the submitted uninstall form.
- system_performance_settings in modules/system/system.admin.inc
- Form builder; Configure site performance settings. See alsosystem_settings_form()
- system_requirements in modules/system/system.install
- Test and report Drupal installation requirements.
- system_rss_feeds_settings in modules/system/system.admin.inc
- Form builder; Configure how the site handles RSS feeds. See alsosystem_settings_form()
- system_run_cron in modules/system/system.admin.inc
- Menu callback: run cron manually.
- system_schema in modules/system/system.install
- Реализация hook_schema().
- system_send_email_action_form in modules/system/system.module
- Return a form definition so the Send email action can be configured. See alsosystem_send_email_action_validate()
- system_send_email_action_validate in modules/system/system.module
- Validate system_send_email_action form submissions.
- system_settings_form in modules/system/system.module
- Добавляет к форме кнопки по умолчанию и устанавливает её префикс. См. также system_settings_form_submit()
- system_settings_form_submit in modules/system/system.module
- Execute the system_settings_form.
- system_site_information_settings in modules/system/system.admin.inc
- Form builder; The general site information form. See alsosystem_settings_form()
- system_site_information_settings_validate in modules/system/system.admin.inc
- Validate the submitted site-information form.
- system_site_maintenance_settings in modules/system/system.admin.inc
- Form builder; Configure the site's maintenance status. See alsosystem_settings_form()
- system_sql in modules/system/system.admin.inc
- Menu callback: return information about the database.
- system_themes_form in modules/system/system.admin.inc
- Menu callback; displays a listing of all themes. See alsosystem_themes_form_submit()
- system_themes_form_submit in modules/system/system.admin.inc
- Process system_themes_form form submissions.
- system_theme_select_form in modules/system/system.module
- Returns a fieldset containing the theme select form.
- system_theme_settings in modules/system/system.admin.inc
- Form builder; display theme configuration for entire site and individual themes.
- system_theme_settings_submit in modules/system/system.admin.inc
- Process system_theme_settings form submissions.
- system_user in modules/system/system.module
- Реализация hook_user().
- tablesort_header in includes/tablesort.inc
- Format a column header.
- taxonomy_add_term_page in modules/taxonomy/taxonomy.admin.inc
- Menu callback; return the edit form for a new term after setting the title.
- taxonomy_admin_vocabulary_edit in modules/taxonomy/taxonomy.admin.inc
- Страница редактирования словаря.
- taxonomy_form in modules/taxonomy/taxonomy.module
- Создает элемент формы для выбора терминов из словаря.
- taxonomy_form_alter in modules/taxonomy/taxonomy.module
- Implementation of hook_form_alter(). Generate a form for selecting terms to associate with a node. We check for taxonomy_override_selector before loading the full vocabulary, so contrib modules can intercept before hook_form_alter and provide scalable...
- taxonomy_form_term in modules/taxonomy/taxonomy.admin.inc
- Функция формы для редактирования термина. См. также taxonomy_form_term_submit()
- taxonomy_form_term_submit in modules/taxonomy/taxonomy.admin.inc
- Обработчик кнопки "Отправить", формы добавления или обновления термина. См. также taxonomy_form_term()
- taxonomy_form_term_validate in modules/taxonomy/taxonomy.admin.inc
- Validation handler for the term edit form. Ensure numeric weight values. See alsotaxonomy_form_term()
- taxonomy_form_vocabulary in modules/taxonomy/taxonomy.admin.inc
- Display form for adding and editing vocabularies. See alsotaxonomy_form_vocabulary_submit()
- taxonomy_form_vocabulary_submit in modules/taxonomy/taxonomy.admin.inc
- Accept the form submission for a vocabulary and save the results.
- taxonomy_help in modules/taxonomy/taxonomy.module
- Реализация hook_help().
- taxonomy_hook_info in modules/taxonomy/taxonomy.module
- Реализация hook_hook_info().
- taxonomy_node_validate in modules/taxonomy/taxonomy.module
- Make sure incoming vids are free tagging enabled.
- taxonomy_overview_terms in modules/taxonomy/taxonomy.admin.inc
- Form builder for the taxonomy terms overview.
- taxonomy_overview_terms_submit in modules/taxonomy/taxonomy.admin.inc
- Submit handler for terms overview form.
- taxonomy_overview_vocabularies in modules/taxonomy/taxonomy.admin.inc
- Form builder to list and manage vocabularies. See alsotaxonomy_overview_vocabularies_submit()
- taxonomy_render_nodes in modules/taxonomy/taxonomy.module
- Принимает результат вызова pager_query(), такой как, например, возвращает taxonomy_select_nodes(), и форматирует каждую ноду вместе с листалкой страниц.
- taxonomy_term_confirm_delete in modules/taxonomy/taxonomy.admin.inc
- Form builder for the term delete form. See alsotaxonomy_term_confirm_delete_submit()
- taxonomy_term_confirm_delete_submit in modules/taxonomy/taxonomy.admin.inc
- Submit handler to delete a term after confirmation. See alsotaxonomy_term_confirm_delete()
- taxonomy_term_confirm_parents in modules/taxonomy/taxonomy.admin.inc
- Form builder for the confirmation of multiple term parents. See alsotaxonomy_form_term()
- taxonomy_term_page in modules/taxonomy/taxonomy.pages.inc
- Коллбэк меню; отображает все ноды, связанные с термином таксономии.
- taxonomy_vocabulary_confirm_delete in modules/taxonomy/taxonomy.admin.inc
- Form builder for the vocabulary delete confirmation form. See alsotaxonomy_vocabulary_confirm_delete_submit()
- taxonomy_vocabulary_confirm_delete_submit in modules/taxonomy/taxonomy.admin.inc
- Submit handler to delete a vocabulary after confirmation. See alsotaxonomy_vocabulary_confirm_delete()
- taxonomy_vocabulary_confirm_reset_alphabetical in modules/taxonomy/taxonomy.admin.inc
- Form builder to confirm reseting a vocabulary to alphabetical order. See alsotaxonomy_vocabulary_confirm_reset_alphabetical_submit()
- taxonomy_vocabulary_confirm_reset_alphabetical_submit in modules/taxonomy/taxonomy.admin.inc
- Submit handler to reset a vocabulary to alphabetical order after confirmation. See alsotaxonomy_vocabulary_confirm_reset_alphabetical()
- template_preprocess_aggregator_feed_source in modules/aggregator/aggregator.pages.inc
- Process variables for aggregator-feed-source.tpl.php. See alsoaggregator-feed-source.tpl.php
- template_preprocess_aggregator_item in modules/aggregator/aggregator.pages.inc
- Process variables for aggregator-item.tpl.php. See alsoaggregator-item.tpl.php
- template_preprocess_aggregator_summary_item in modules/aggregator/aggregator.pages.inc
- Process variables for aggregator-summary-item.tpl.php. See alsoaggregator-summary-item.tpl.php
- template_preprocess_block_admin_display_form in modules/block/block.admin.inc
- Process variables for block-admin-display.tpl.php.
- template_preprocess_comment in modules/comment/comment.module
- Process variables for comment.tpl.php. See alsocomment.tpl.php
- template_preprocess_comment_folded in modules/comment/comment.module
- Process variables for comment-folded.tpl.php. See alsocomment-folded.tpl.php
- template_preprocess_forums in modules/forum/forum.module
- Process variables for forums.tpl.php
- template_preprocess_forum_topic_list in modules/forum/forum.module
- Preprocess variables to format the topic listing.
- template_preprocess_user_picture in modules/user/user.module
- Process variables for user-picture.tpl.php.
- theme_admin_page in modules/system/system.admin.inc
- Форматирует административную страницу для отображения.
- theme_aggregator_block_item in modules/aggregator/aggregator.module
- Format an individual feed item for display in the block.
- theme_aggregator_categorize_items in modules/aggregator/aggregator.pages.inc
- Theme the page list form for assigning categories.
- theme_aggregator_page_rss in modules/aggregator/aggregator.pages.inc
- Темизирует вывод RSS.
- theme_book_admin_table in modules/book/book.admin.inc
- Theme function for the book administration page form. See alsobook_admin_table()
- theme_color_scheme_form in modules/color/color.module
- Темизирует форму выбора расцветки темы оформления.
- theme_comment_admin_overview in modules/comment/comment.admin.inc
- Темизирует форму комментирования администратора.
- 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_post_forbidden in modules/comment/comment.module
- Темизирует уведомление "вы не можете оставить комментарий".
- theme_comment_submitted in modules/comment/comment.module
- Темизирует информацию об авторстве комментария.
- theme_feed_icon in includes/theme.inc
- Возвращает код, который выдает иконку новостной ленты.
- theme_filter_admin_order in modules/filter/filter.admin.inc
- Темизирует форму конфигурации порядка фильтров.
- theme_filter_admin_overview in modules/filter/filter.admin.inc
- Theme the admin overview form.
- theme_filter_tips Форматирование подсказок по редактированию in modules/filter/filter.pages.inc
- Форматирование подсказок по редактированию
- theme_filter_tips_more_info in modules/filter/filter.module
- Format a link to the more extensive filter tips.
- theme_locale_languages_overview_form in includes/locale.inc
- Темизирует форму обзора языков сайта.
- theme_mark in includes/theme.inc
- Возвращает темизированный маркер, полезный для маркировки нового или обновленного содержимого.
- theme_menu_overview_form in modules/menu/menu.admin.inc
- Theme the menu overview form into a table.
- theme_more_help_link in includes/theme.inc
- Returns code that emits the 'more help'-link.
- theme_more_link in includes/theme.inc
- Returns code that emits the 'more' link used on blocks.
- 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_nodeapi_example_rating in developer/examples/nodeapi_example.module
- Пользовательская функция темизации.
- theme_node_admin_nodes in modules/node/node.admin.inc
- Theme node administration overview.
- theme_node_example_order_info in developer/examples/node_example.module
- Пользовательская функция темизации.
- theme_node_filters in modules/node/node.admin.inc
- Theme node administration filter selector.
- theme_node_log_message in modules/node/node.module
- Темизирует сообщения системного журнала.
- theme_node_preview in modules/node/node.pages.inc
- Отображает предпросмотр ноды во время ее создания и редактирования.
- theme_node_search_admin in modules/node/node.module
- Theme the content ranking part of the search settings admin page.
- theme_node_submitted in modules/node/node.module
- Формат представления "Опубликовано _пользователем_ в _дата/время_" для каждой ноды
- theme_pager in includes/pager.inc
- Темизирует "листалку" страниц.
- theme_pager_link in includes/pager.inc
- Форматирует ссылку на определенную запрошенную страницу.
- theme_poll_choices in modules/poll/poll.module
- Theme the admin poll form for choices.
- 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_system_admin_by_module in modules/system/system.admin.inc
- Темизирует вывод страницы администрирования по модулям.
- theme_system_modules in modules/system/system.admin.inc
- Темизирует форму модулей.
- theme_system_modules_uninstall in modules/system/system.admin.inc
- Темизирует таблицу отключенных на данный момент модулей.
- theme_system_powered_by in modules/system/system.module
- Форматирует текст надписи "Powered by Drupal" (Создано на Друпале).
- theme_system_themes_form in modules/system/system.admin.inc
- Theme function for the system themes form.
- theme_system_theme_select_form in modules/system/system.admin.inc
- Темизирует форму выбора темы.
- theme_tablesort_indicator in includes/theme.inc
- Возвращает темизированную иконку сортировки колонки таблицы.
- theme_taxonomy_overview_terms in modules/taxonomy/taxonomy.admin.inc
- Темизирует обзор терминов как сортируемый список.
- theme_taxonomy_overview_vocabularies in modules/taxonomy/taxonomy.admin.inc
- Темизирует обзор словарей как сортируемый список.
- theme_trigger_display in modules/trigger/trigger.admin.inc
- Display actions assigned to this hook-op combination in a table.
- theme_update_report in modules/update/update.report.inc
- Темизирует сообщение о состоянии модуля или темы.
- theme_update_version in modules/update/update.report.inc
- Темизирует отображение версии проекта.
- 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.admin.inc
- Theme user administration overview.
- theme_user_admin_new_role in modules/user/user.admin.inc
- Theme the new-role form.
- theme_user_admin_perm in modules/user/user.admin.inc
- Темизирует страницу управления разрешениями.
- theme_user_filters in modules/user/user.admin.inc
- Theme user administration filter selector.
- theme_xml_icon in includes/theme.inc
- Возвращает код, который отображает иконку XML.
- throttle_admin_settings in modules/throttle/throttle.admin.inc
- Form builder; Configure the throttle system. See alsosystem_settings_form()
- throttle_admin_settings_validate in modules/throttle/throttle.admin.inc
- throttle_help in modules/throttle/throttle.module
- Реализация hook_help().
- tracker_help in modules/tracker/tracker.module
- Реализация hook_help().
- tracker_page in modules/tracker/tracker.pages.inc
- Menu callback. Prints a listing of active nodes on the site.
- translation_form_alter in modules/translation/translation.module
- Implementation of hook_form_alter().
- translation_help in modules/translation/translation.module
- Реализация hook_help().
- translation_node_overview in modules/translation/translation.pages.inc
- Overview page for a node's translations.
- trigger_assign_form in modules/trigger/trigger.admin.inc
- Create the form definition for assigning an action to a hook-op combination.
- trigger_assign_form_submit in modules/trigger/trigger.admin.inc
- Submit function for trigger_assign_form().
- trigger_assign_form_validate in modules/trigger/trigger.admin.inc
- Validation function for trigger_assign_form().
- trigger_help in modules/trigger/trigger.module
- Реализация hook_help().
- trigger_options in modules/trigger/trigger.module
- Данная функция генерирует опции для поля выбора действия (элемент select), содержащие сами действия (actions).
- trigger_unassign in modules/trigger/trigger.admin.inc
- Confirm removal of an assigned action.
- trigger_unassign_submit in modules/trigger/trigger.admin.inc
- update_calculate_project_data in modules/update/update.compare.inc
- Определяет текущий статус обновления сайта по данным установленных модулей, а также доступных релизов, полученных от внешних серверов.
- update_help in modules/update/update.module
- Реализация hook_help().
- update_mail in modules/update/update.module
- Implementation of hook_mail().
- update_manual_status in modules/update/update.fetch.inc
- Callback to manually check the update status without cron.
- update_process_project_info in modules/update/update.compare.inc
- Process the list of projects on the system to figure out the currently installed versions, and other information that is required before we can compare against the available releases to produce the status report.
- update_requirements in modules/update/update.module
- Implementation of hook_requirements(). See also_update_message_text()
- update_settings in modules/update/update.settings.inc
- Form builder for the update settings tab.
- update_settings_submit in modules/update/update.settings.inc
- Submit handler for the settings tab.
- update_settings_validate in modules/update/update.settings.inc
- Validation callback for the settings form.
- upload_admin_settings in modules/upload/upload.admin.inc
- Menu callback for the upload settings form.
- upload_admin_settings_validate in modules/upload/upload.admin.inc
- 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().
- user_action_info in modules/user/user.module
- Реализация hook_action_info().
- user_admin in modules/user/user.admin.inc
- user_admin_access in modules/user/user.admin.inc
- Menu callback: list all access rules
- user_admin_access_add in modules/user/user.admin.inc
- Menu callback: add an access rule.
- user_admin_access_check_submit in modules/user/user.admin.inc
- user_admin_access_check_validate in modules/user/user.admin.inc
- user_admin_access_delete_confirm in modules/user/user.admin.inc
- Menu callback: delete an access rule See alsouser_admin_access_delete_confirm_submit()
- user_admin_access_delete_confirm_submit in modules/user/user.admin.inc
- user_admin_access_edit in modules/user/user.admin.inc
- Menu callback: edit an access rule.
- user_admin_access_form in modules/user/user.admin.inc
- Form builder; Configure access rules.
- user_admin_access_form_submit in modules/user/user.admin.inc
- Submit callback for user_admin_access_form().
- user_admin_account in modules/user/user.admin.inc
- Form builder; User administration page. See alsouser_admin_account_validate()
- user_admin_account_submit in modules/user/user.admin.inc
- Submit the user administration update form.
- user_admin_account_validate in modules/user/user.admin.inc
- user_admin_check_host in modules/user/user.admin.inc
- user_admin_check_mail in modules/user/user.admin.inc
- user_admin_check_user in modules/user/user.admin.inc
- user_admin_perm in modules/user/user.admin.inc
- Menu callback: administer permissions. See alsouser_admin_perm_submit()
- user_admin_perm_submit in modules/user/user.admin.inc
- user_admin_role in modules/user/user.admin.inc
- Menu callback: administer roles. See alsouser_admin_role_validate()
- user_admin_role_submit in modules/user/user.admin.inc
- user_admin_role_validate in modules/user/user.admin.inc
- user_admin_settings in modules/user/user.admin.inc
- Form builder; Configure user settings for this site. See alsosystem_settings_form()
- user_authenticate in modules/user/user.module
- Try to log in the user locally.
- user_block in modules/user/user.module
- Реализация hook_block().
- user_confirm_delete in modules/user/user.pages.inc
- Form builder; confirm form for user deletion. See alsouser_confirm_delete_submit()
- user_confirm_delete_submit in modules/user/user.pages.inc
- Submit function for the confirm form for user deletion.
- user_edit_form in modules/user/user.module
- user_edit_submit in modules/user/user.pages.inc
- user_edit_validate in modules/user/user.pages.inc
- user_external_login_register in modules/user/user.module
- Helper function for authentication modules. Either login in or registers the current user, based on username. Either way, the global $user object is populated based on $name.
- user_filters in modules/user/user.module
- List user administration filters that can be applied.
- user_filter_form in modules/user/user.admin.inc
- Form builder; Return form for user administration filters. See alsouser_filter_form_submit()
- user_filter_form_submit in modules/user/user.admin.inc
- Process result from user administration filter form.
- user_help in modules/user/user.module
- Реализация hook_help().
- user_hook_info in modules/user/user.module
- Implementation of hook_hook_info().
- user_login in modules/user/user.module
- Конструктор формы; генерирует форму для входа на сайт.
- user_login_block in modules/user/user.module
- user_login_final_validate in modules/user/user.module
- A validate handler on the login form. Should be the last validator. Sets an error if user has not been authenticated yet.
- user_login_name_validate in modules/user/user.module
- A FAPI validate handler. Sets an error if supplied username has been blocked or denied access.
- user_multiple_delete_confirm in modules/user/user.module
- user_multiple_delete_confirm_submit in modules/user/user.module
- user_page_title in modules/user/user.module
- Menu item title callback - use the user name if it's not the current user.
- user_pass in modules/user/user.pages.inc
- Консруктор формы. Запрашивает сброс пароля. Также смотри also_user_validate();
- user_pass_reset in modules/user/user.pages.inc
- Menu callback; process one time login link and redirects to the user page on success.
- user_pass_submit in modules/user/user.pages.inc
- user_pass_validate in modules/user/user.pages.inc
- user_profile_form in modules/user/user.pages.inc
- Form builder; edit a user account or one of their profile categories. See alsouser_profile_form_validate()
- user_profile_form_submit in modules/user/user.pages.inc
- Submit function for the user account and profile editing form.
- user_profile_form_validate in modules/user/user.pages.inc
- Validation function for the user account and profile editing form.
- user_register in modules/user/user.module
- Конструктор формы; Форма регистрации пользователя.
- user_register_submit in modules/user/user.module
- Обработчик формы регистрации пользователя.
- user_roles 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
- Проверяет синтаксис заданного имени.
- user_validate_picture in modules/user/user.module
- watchdog_severity_levels in includes/common.inc
- @see watchdog
- 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
- _batch_do in includes/batch.inc
- Do one pass of execution and inform back the browser about progression (used for JavaScript-mode only).
- _block_rehash in modules/block/block.module
- Update the 'blocks' DB table with the blocks currently exported by modules.
- _blogapi_validate_blogid in modules/blogapi/blogapi.module
- Validate blog ID, which maps to a content type in Drupal.
- _book_add_form_elements in modules/book/book.module
- Build the common elements of the book form for the node and outline forms.
- _book_install_type_create in modules/book/book.install
- _book_parent_select in modules/book/book.module
- Build the parent selection form element for the node form or outline tab
- _comment_form_submit in modules/comment/comment.module
- Prepare a comment for submission.
- _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.
- _dblog_format_message in modules/dblog/dblog.admin.inc
- Formats a log message for display.
- _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.
- _forum_parent_select in modules/forum/forum.admin.inc
- Returns a select box for available parent terms
- _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_languages_common_controls in includes/locale.inc
- Common elements of the language addition and editing form.
- _locale_prepare_predefined_list in includes/locale.inc
- Prepares the language code list for a select form item with only the unsupported ones
- _locale_rebuild_js in includes/locale.inc
- Создает(заменяет) JavaScript-файл перевода для указанного языка.
- _locale_translate_seek in includes/locale.inc
- Perform a string search and display results in a table
- _menu_item_localize in includes/menu.inc
- Localize the router item title using t() or another callback.
- _menu_overview_tree_form in modules/menu/menu.admin.inc
- Recursive helper function for menu_overview_form().
- _menu_parents_recurse in modules/menu/menu.module
- Recursive helper function for menu_parent_options().
- _menu_site_is_offline in includes/menu.inc
- Проверяет, находится ли сайт в автономном режиме "на обслуживании".
- _module_build_dependencies in includes/module.inc
- Find dependencies any level deep and fill in dependents information too.
- _node_access_rebuild_batch_finished in modules/node/node.module
- Post-processing for node_access_rebuild_batch.
- _node_mass_update_batch_finished in modules/node/node.admin.inc
- Node Mass Update Batch 'finished' callback.
- _node_type_set_defaults in modules/node/node.module
- Устанавливает значения по умолчанию, для типа нод, определенного через hook_node_info().
- _poll_choice_form in modules/poll/poll.module
- _profile_field_types in modules/profile/profile.module
- _profile_form_explanation in modules/profile/profile.module
- _system_sql in modules/system/system.admin.inc
- Theme a SQL result table.
- _update_message_text in modules/update/update.module
- Helper function to return the appropriate message text when the site is out of date or missing a security update.
- _update_no_data in modules/update/update.module
- Prints a warning message when there is no data about available updates.
- _update_refresh in modules/update/update.fetch.inc
- Fetch project info via XML from a central server.
- _update_requirement_check in modules/update/update.module
- Private helper method to fill in the requirements array.
- _upload_form in modules/upload/upload.module
- _user_edit_validate in modules/user/user.module
- _user_mail_text in modules/user/user.module
- Returns a mail string for a variable name.
- _user_password_dynamic_validation in modules/user/user.module
- Add javascript and string translations for dynamic password validation (strength and confirmation checking).
- _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 = array(), $langcode = NULL) {
global $language;
static $custom_strings;
$langcode = isset($langcode) ? $langcode : $language->language;
// First, check for an array of customized strings. If present, use the array
// *instead of* database lookups. This is a high performance way to provide a
// handful of string replacements. See settings.php for examples.
// Cache the $custom_strings variable to improve performance.
if (!isset($custom_strings[$langcode])) {
$custom_strings[$langcode] = variable_get('locale_custom_strings_'. $langcode, array());
}
// Custom strings work for English too, even if locale module is disabled.
if (isset($custom_strings[$langcode][$string])) {
$string = $custom_strings[$langcode][$string];
}
// Translate with locale module if enabled.
elseif (function_exists('locale') && $langcode != 'en') {
$string = locale($string, $langcode);
}
if (empty($args)) {
return $string;
}
else {
// Transform arguments before inserting them.
foreach ($args as $key => $value) {
switch ($key[0]) {
case '@':
// Escaped only.
$args[$key] = check_plain($value);
break;
case '%':
default:
// Escaped and placeholder.
$args[$key] = theme('placeholder', $value);
break;
case '!':
// Pass-through.
}
}
return strtr($string, $args);
}
}
?>
Эта функция относится к cism exam questions внутрисайтовой HTTP-переадресации. Функция проверяет, является ли указанный для перехода URL корректно сформированным.Эта функция относится к внутрисайтовой HTTP-переадресации. Функция проверяет, является ли указанный для перехода cdia+
URL корректно сформированным.Эта функция относится к внутрисайтовой HTTP-переадресации. Функция проверяет, является ли указанный ccse certification для перехода URL корректно сформированным.