Справочник API › Функции
check_plain
- Drupal 5
- Drupal 6
Переводы решают все!
includes/bootstrap.inc, строка 733
- Версии
- 5 – 6
check_plain($text)
Представляет специальные символы в виде HTML кодов (например, '<'
=> '<'
, '>'
=> '>'
, '&'
=> '&'
, ...) Это предотвращает вывод нежелательных символов и тегов HTML.
Использует drupal_validate_utf8()
для предоствращения XSS-атак (cross site scripting) в IE6.
Encode special characters in a plain-text string for display as HTML.
Uses drupal_validate_utf8 to prevent cross site scripting attacks on Internet Explorer 6.
▸ 135 функции вызывают check_plain()
▾ 135 функции вызывают check_plain()
- 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_form_feed in modules/aggregator/aggregator.admin.inc
- Конструктор формы; генерирует форму добавления/редактирования источников фида.
- aggregator_page_source in modules/aggregator/aggregator.pages.inc
- Menu callback; displays all the items captured from a particular feed.
- aggregator_refresh in modules/aggregator/aggregator.module
- Проверяет фид новостей на наличие новых пунктов.
- block_admin_display_form in modules/block/block.admin.inc
- Generate main blocks administration form.
- block_list in modules/block/block.module
- Возвращает все блоки в заданном регионе для текущего пользователя.
- block_menu in modules/block/block.module
- Реализация hook_menu().
- 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.admin.inc
- Конструктор формы для управления иерархией книги.
- book_outline in modules/book/book.pages.inc
- Menu callback; show the outline form for a single node.
- chameleon_node in themes/chameleon/chameleon.theme
- comment_form_add_preview 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_nodeapi in modules/comment/comment.module
- Реализация hook_nodeapi().
- conf_init in includes/bootstrap.inc
- Загружает конфигурацию и устанавливает правильные базовый URL, куки и сессии
- contact_mail_user in modules/contact/contact.pages.inc
- contact_user_page in modules/contact/contact.pages.inc
- Страница персональных контактов.
- dblog_event in modules/dblog/dblog.admin.inc
- Коллбэк меню; отображает подробности записи журнала системы.
- db_add_field in includes/database.mysql-common.inc
- Добавляет новое поле в таблицу.
- 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
- Check that the directory exists and is writable. Directories need to have execute permissions to be considered a directory by FTP servers, etc.
- 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
- Форматирует один элемент(новость) RSS.
- 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
- Показывает форму изменения ноды.
- hook_search in developer/hooks/core.php
- Определяет пользовательскую функцию поиска.
- l in includes/common.inc
- Оформляет ссылки.
- locale_languages_overview_form in includes/locale.inc
- User interface for the language overview screen.
- locale_translate_edit_form in includes/locale.inc
- User interface for string editing.
- menu_block in modules/menu/menu.module
- Реализация hook_block().
- menu_path_is_external in includes/menu.inc
- Возвратить TRUE если путь является внешним (например http://example.com).
- node_admin_nodes in modules/node/node.admin.inc
- Form builder: Builds the node administration overview.
- node_body_field in modules/node/node.pages.inc
- Return a node body field, with format and teaser.
- 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.admin.inc
- node_overview_types in modules/node/content_types.inc
- Displays the content type admin overview page.
- node_page_edit in modules/node/node.pages.inc
- 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_search in modules/node/node.module
- Реализация hook_search().
- openid_user_identities in modules/openid/openid.pages.inc
- Menu callback; Manage OpenID identities for the specified user.
- path_admin_edit in modules/path/path.admin.inc
- Menu callback; handles pages for creating and editing URL aliases.
- 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.
- poll_form in modules/poll/poll.module
- Реализация hook_form().
- poll_results in modules/poll/poll.pages.inc
- Callback for the 'results' tab for polls you can vote on
- poll_teaser in modules/poll/poll.module
- Создает список вариантов ответов опроса для помещения этого списка в тизере.
- poll_view_voting in modules/poll/poll.module
- Generates the voting form for a poll. See alsopoll_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_settings_autocomplete in modules/profile/profile.admin.inc
- Retrieve a pipe delimited string of autocomplete suggestions for profile categories
- profile_autocomplete in modules/profile/profile.pages.inc
- Callback to allow autocomplete of profile text fields.
- 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_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
- Жёстко запрограммированная функция, являющаяся эквивалентом функции t() в ходе инсталляции, когда база данных, тема и система локализации возможно ещё не доступны.
- statistics_access_log in modules/statistics/statistics.admin.inc
- Menu callback; Displays recent page accesses.
- statistics_node_tracker in modules/statistics/statistics.pages.inc
- statistics_user_tracker in modules/statistics/statistics.pages.inc
- system_actions_delete_form_submit in modules/system/system.module
- Process system_actions_delete form submissions.
- system_message_action in modules/system/system.module
- A configurable Drupal action. Sends a message to the current user's screen.
- system_theme_settings in modules/system/system.admin.inc
- Form builder; display theme configuration for entire site and individual themes.
- t in includes/common.inc
- Переводит строку на заданный язык или язык страницы.
- taxonomy_autocomplete in modules/taxonomy/taxonomy.pages.inc
- Вспомогательная функция для автозаполнения формы с терминами таксономии
- taxonomy_form in modules/taxonomy/taxonomy.module
- Создает элемент формы для выбора терминов из словаря.
- taxonomy_overview_vocabularies in modules/taxonomy/taxonomy.admin.inc
- Form builder to list and manage vocabularies. See alsotaxonomy_overview_vocabularies_submit()
- taxonomy_term_page in modules/taxonomy/taxonomy.pages.inc
- Коллбэк меню; отображает все ноды, связанные с термином таксономии.
- 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_aggregator_summary_items in modules/aggregator/aggregator.pages.inc
- Process variables for aggregator-summary-items.tpl.php. See alsoaggregator-summary-item.tpl.php
- template_preprocess_book_export_html in modules/book/book.module
- Process variables for book-export-html.tpl.php.
- template_preprocess_book_navigation in modules/book/book.module
- Process variables for book-navigation.tpl.php.
- template_preprocess_book_node_export_html in modules/book/book.module
- Process variables for book-node-export-html.tpl.php.
- template_preprocess_forums in modules/forum/forum.module
- Process variables for forums.tpl.php
- template_preprocess_forum_list in modules/forum/forum.module
- Process variables to format a forum listing.
- template_preprocess_forum_topic_list in modules/forum/forum.module
- Preprocess variables to format the topic listing.
- template_preprocess_forum_topic_navigation in modules/forum/forum.module
- Preprocess variables to format the next/previous forum topic navigation links.
- template_preprocess_node in includes/theme.inc
- Обрабатывает переменные для node.tpl.php
- template_preprocess_poll_bar in modules/poll/poll.module
- Preprocess the poll_bar theme hook.
- template_preprocess_poll_results in modules/poll/poll.module
- Preprocess the poll_results theme hook.
- template_preprocess_poll_vote in modules/poll/poll.module
- Themes the voting form for a poll.
- template_preprocess_profile_block in modules/profile/profile.module
- Process variables for profile-block.tpl.php.
- template_preprocess_search_result in modules/search/search.pages.inc
- Process variables for search-result.tpl.php.
- template_preprocess_user_profile_category in modules/user/user.pages.inc
- Process variables for user-profile-category.tpl.php.
- theme_aggregator_block_item in modules/aggregator/aggregator.module
- Format an individual feed item for display in the block.
- theme_aggregator_page_opml in modules/aggregator/aggregator.pages.inc
- Темизирует вывод новостной ленты в формате OPML.
- theme_button in includes/form.inc
- Форматирует кнопку для формы.
- theme_filter_admin_overview in modules/filter/filter.admin.inc
- Theme the admin overview form.
- theme_hidden in includes/form.inc
- Форматирует скрытое поле формы.
- theme_image in includes/theme.inc
- Возвращает темизированную картинку.
- theme_image_button in includes/form.inc
- Темизирует кнопку-картинку формы.
- theme_links in includes/theme.inc
- Возвращает темизированный набор ссылок.
- theme_locale_languages_overview_form in includes/locale.inc
- Темизирует форму обзора языков сайта.
- 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_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_radio in includes/form.inc
- Форматирует одиночный переключатель (радио-кнопку) для их группы.
- theme_textarea in includes/form.inc
- Форматирует многострочное текстовое поле ввода для формы.
- theme_textfield in includes/form.inc
- Форматирует однострочное текстовое поле ввода.
- theme_update_report in modules/update/update.report.inc
- Темизирует сообщение о состоянии модуля или темы.
- theme_username in includes/theme.inc
- Форматирует имя пользователя.
- tracker_page in modules/tracker/tracker.pages.inc
- Menu callback. Prints a listing of active nodes on the site.
- trigger_unassign_submit in modules/trigger/trigger.admin.inc
- update_do_one in ./update.php
- Perform one update and store the results which will later be displayed on the finished page.
- update_sql in includes/database.inc
- Выполняет SQL-запрос и возвращает статус результата. Используется преимущественно в hook_update_N() и остальных функциях инсталяции/обновления модулей.
- url in includes/common.inc
- Генерирует URL из указанного пути меню. Также поддерживает уже существующие URL.
- user_autocomplete in modules/user/user.pages.inc
- Menu callback; Retrieve a JSON object containing autocomplete suggestions for existing users.
- user_block in modules/user/user.module
- Реализация hook_block().
- user_block_user_action in modules/user/user.module
- Implementation of a Drupal action. Blocks the current user.
- user_edit in modules/user/user.pages.inc
- Form builder; Present the form to edit a given user or profile category. See alsouser_edit_validate()
- user_multiple_delete_confirm in modules/user/user.module
- user_view in modules/user/user.pages.inc
- Menu callback; Displays a user or user profile page.
- xmlrpc_value_get_xml in includes/xmlrpc.inc
- Generate XML representing the given value.
- _db_query in includes/database.mysql.inc
- Вспомогательная функция для db_query().
- _drupal_bootstrap in includes/bootstrap.inc
- _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_translate_seek in includes/locale.inc
- Perform a string search and display results in a table
- _node_index_node in modules/node/node.module
- Индексирует одну ноду.
- _system_sql in modules/system/system.admin.inc
- Theme a SQL result table.
- _upload_form in modules/upload/upload.module
Код
<?php
function check_plain($text) {
return drupal_validate_utf8($text) ? htmlspecialchars($text, ENT_QUOTES) : '';
}
?>
Drupal is a free and open source testking itil v3 content management system written in PHP and distributed under the GNU General Public License. It is used as a back-end system for at least 1% of all websites worldwide, ranging from small personal blogs to large corporate and political mcdst certification sites, including whitehouse.gov and data.gov.uk. It is also used for knowledge management and business collaboration. The standard release of Drupal, known as Drupal core, contains basic features common to most CMSs. These include the ability to register and maintain individual user accounts within a role-based scjp dumps permission privilege system.