check_plain

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

includes/bootstrap.inc, строка 670

Версии
5 – 6
check_plain($text)

Представляет специальные символы в виде HTML кодов (например, '<' => '&lt;', '>' => '&gt;', '&' => '&amp;', …) Это предотвращает вывод нежелательных символов и тегов HTML.

Использует drupal_validate_utf8() для предоствращения XSS-атак (cross site scripting) в IE6.

▾ 126 функции вызывают check_plain()

aggregator_block in modules/aggregator/aggregator.module
Реализация hook_block().
aggregator_form_feed in modules/aggregator/aggregator.module
Генерирует форму добавления/редактирования источников фида.
aggregator_page_categories in modules/aggregator/aggregator.module
Коллбэк меню; показывает все категории, используемые аггрегатором.
aggregator_page_list in modules/aggregator/aggregator.module
aggregator_page_opml in modules/aggregator/aggregator.module
Коллбэк меню; генерирует представление OPML из всех фидов.
aggregator_page_sources in modules/aggregator/aggregator.module
Коллбэк меню; показывает все фиды, используемые аггрегатором.
aggregator_refresh in modules/aggregator/aggregator.module
Проверяет фид новостей на наличие новых пунктов.
block_admin_display in modules/block/block.module
Generate main block administration form.
block_list in modules/block/block.module
Return all blocks in the specified region for the current user.
block_user in modules/block/block.module
Реализация hook_user().
blog_form in modules/blog/blog.module
Реализация hook_form().
book_admin_edit in modules/book/book.module
Конструктор формы для управления иерархией книги.
book_block in modules/book/book.module
Реализация hook_block().
book_export_html in modules/book/book.module
This function is called by book_export() to generate HTML for export.
book_form in modules/book/book.module
Реализация hook_form().
book_node_visitor_html_pre in modules/book/book.module
Generates printer-friendly HTML for a node. This function is a 'pre-node' visitor function for book_recurse().
book_outline in modules/book/book.module
Implementation of function book_outline() Handles all book outline operations.
chameleon_node in themes/chameleon/chameleon.theme
comment_form_add_preview in modules/comment/comment.module
Конструктор формы; Формирует и проверяет форму предпросмотра комментария.
comment_multiple_delete_confirm in modules/comment/comment.module
List the selected comments and verify that the admin really wants to delete them.
comment_nodeapi in modules/comment/comment.module
Реализация hook_nodeapi().
conf_init in includes/bootstrap.inc
Загружает конфигурацию и устанавливает правильные базовый URL, куки и сессии.
contact_mail_user in modules/contact/contact.module
contact_user_page in modules/contact/contact.module
Страница персональных контактов.
drupal_access_denied in includes/common.inc
Генерирует ошибку 403 если для просмотра страницы недостаточно прав.
drupal_attributes in includes/common.inc
Форматирует строку с атрибутами для вставки в HTML тэг.
drupal_get_title in includes/path.inc
Получает заголовок текущей страницы для показа на странице и панели заголовка.
drupal_not_found in includes/common.inc
Генерирует ошибку 404 (страница не найдена) если запрос не удалось обработать.
expand_radios in includes/form.inc
Превращает элемент radios («список переключателей») в список еденичных элементов radio («переключатель»).
file_check_directory in includes/file.inc
Проверка каталога на существование и доступность для записи.
filter_filter_tips in modules/filter/filter.module
Реализация hook_filter_tips().
filter_xss_bad_protocol in modules/filter/filter.module
Обрабатывает значение HTML-аттрибута и проверяет, чтобы он не содержал URL с запрещённым протоколом (например, javascript:)
format_rss_channel in includes/common.inc
Formats an RSS channel.
format_rss_item in includes/common.inc
Format a single RSS item.
format_xml_elements in includes/common.inc
Format XML elements.
form_select_options in includes/form.inc
forum_form in modules/forum/forum.module
Реализация hook_form().
hook_form in developer/hooks/node.php
Показывает форму редактирования ноды.
l in includes/common.inc
Оформляет ссылки.
menu_block in modules/menu/menu.module
Реализация hook_block().
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
node_admin_nodes in modules/node/node.module
node_content_form in modules/node/node.module
Реализация hook_form().
node_example_form in developer/examples/node_example.module
Реализация hook_form().
node_multiple_delete_confirm in modules/node/node.module
node_overview_types in modules/node/content_types.inc
Displays the content type admin overview page.
node_page_edit in modules/node/node.module
Menu callback; presents the node editing form, or redirects to delete confirmation.
node_page_view in modules/node/node.module
Menu callback; view a single node.
node_perm in modules/node/node.module
Реализация hook_perm().
node_update_index in modules/node/node.module
Реализация hook_update_index().
path_admin_edit in modules/path/path.module
Menu callback; handles pages for creating and editing URL aliases.
path_overview in modules/path/path.module
Return a listing of all defined URL aliases.
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.
poll_form in modules/poll/poll.module
Реализация hook_form().
poll_results in modules/poll/poll.module
Callback for the 'results' tab for polls you can vote on
poll_teaser in modules/poll/poll.module
Создает список вариантов ответов опроса для помещения этого списка в тизере.
poll_view_results in modules/poll/poll.module
Generates a graphical representation of the results of a poll.
poll_view_voting in modules/poll/poll.module
Generates the voting form for a poll.
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_admin_settings_autocomplete in modules/profile/profile.module
Retrieve a pipe delimited string of autocomplete suggestions for profile categories
profile_autocomplete in modules/profile/profile.module
Callback to allow autocomplete of profile text 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_form_profile in modules/profile/profile.module
profile_view_field in modules/profile/profile.module
profile_view_profile in modules/profile/profile.module
st in includes/install.inc
Жёстко запрограммированная функция, являющаяся эквивалентом функции theme('placeholder'), когда система темизации не доступна.
statistics_access_log in modules/statistics/statistics.module
statistics_node_tracker in modules/statistics/statistics.module
statistics_user_tracker in modules/statistics/statistics.module
system_theme_settings in modules/system/system.module
Menu callback; display theme configuration for entire site and individual themes.
system_update_177 in modules/system/system.install
t in includes/common.inc
Переводит строку на заданный язык или язык страницы.
taxonomy_autocomplete in modules/taxonomy/taxonomy.module
Helper function for autocompletion
taxonomy_form in modules/taxonomy/taxonomy.module
Generate a form element for selecting terms from a vocabulary.
taxonomy_form_term in modules/taxonomy/taxonomy.module
taxonomy_overview_terms in modules/taxonomy/taxonomy.module
Display a tree of all the terms in a vocabulary, with options to edit each one.
taxonomy_overview_vocabularies in modules/taxonomy/taxonomy.module
List and manage vocabularies.
taxonomy_rss_item in modules/taxonomy/taxonomy.module
Provides category information for RSS feeds.
taxonomy_term_page in modules/taxonomy/taxonomy.module
Menu callback; displays all nodes associated with a term.
theme_aggregator_block_item in modules/aggregator/aggregator.module
Format an individual feed item for display in the block.
theme_aggregator_page_item in modules/aggregator/aggregator.module
Format an individual feed item for display on the aggregator page.
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_button in includes/form.inc
Форматирует кнопку для формы.
theme_client_list in modules/drupal/drupal.module
Theme a client list.
theme_filter_admin_overview in modules/filter/filter.module
theme_forum_display in modules/forum/forum.module
Format the forum body.
theme_forum_topic_list in modules/forum/forum.module
Format the topic listing.
theme_hidden in includes/form.inc
Форматирует скрытое поле формы.
theme_image in includes/theme.inc
Возвращает темизированную картинку.
theme_links in includes/theme.inc
Возвращает темизированный набор ссылок.
theme_locale_admin_manage_screen in includes/locale.inc
Theme the locale admin manager form.
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_node_example_order_info in developer/examples/node_example.module
Пользовательская функция темизации.
theme_placeholder in includes/theme.inc
Formats text for emphasized display in a placeholder inside a sentence. Used automatically by t().
theme_profile_block in modules/profile/profile.module
theme_radio in includes/form.inc
Форматирует одиночный переключатель (радио-кнопку) для их группы.
theme_search_item in modules/search/search.module
Format a single result entry of a search query. This function is normally called by theme_search_page() or hook_search_page().
theme_textarea in includes/form.inc
Форматирует многострочное текстовое поле ввода для формы.
theme_textfield in includes/form.inc
Форматирует однострочное текстовое поле ввода.
theme_username in includes/theme.inc
Форматирует имя пользователя.
theme_user_profile in modules/user/user.module
Theme a user page
tracker_page in modules/tracker/tracker.module
Menu callback. Prints a listing of active nodes on the site.
tracker_track_user in modules/tracker/tracker.module
Menu callback. Prints a listing of active nodes on the site.
update_sql in ./update.php
Выполняет SQL-запрос и возвращает статус результата. Используется преимущественно в hook_update_N() и остальных функциях инсталяции/обновления модулей.
url in includes/common.inc
Генерирует URL из указанного пути меню. Также поддерживает уже существующие URL.
user_autocomplete in modules/user/user.module
Retrieve a pipe delimited string of autocomplete suggestions for existing users
user_block in modules/user/user.module
Реализация hook_block().
user_edit in modules/user/user.module
user_login_submit in modules/user/user.module
user_multiple_delete_confirm in modules/user/user.module
user_view in modules/user/user.module
xmlrpc_value_get_xml in includes/xmlrpc.inc
Generate XML representing the given value.
_db_query in includes/database.mysql.inc
Вспомогательная функция для db_query().
_filter_html in modules/filter/filter.module
HTML filter. Provides filtering of input into accepted HTML.
_filter_url_parse_full_links in modules/filter/filter.module
Make links out of absolute URLs.
_filter_url_parse_partial_links in modules/filter/filter.module
Make links out of domain names starting with 'www.'
_locale_admin_manage_screen in includes/locale.inc
User interface for the language management screen.
_locale_string_edit in includes/locale.inc
User interface for string editing.
_locale_string_seek in includes/locale.inc
Perform a string search and display results in a table
_system_sql in modules/system/system.module
_upload_form in modules/upload/upload.module

Код

<?php
function check_plain($text) {
  return drupal_validate_utf8($text) ? htmlspecialchars($text, ENT_QUOTES) : '';
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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