theme

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

includes/theme.inc, строка 161

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

Генерирует темизированный вывод.

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

Например, чтобы получить результат theme_page($output), нужно вызывать theme('page', $output).

Параметры

$function Название функции темизации.

... Дополнительные аргументы функции темизации.

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

Конечный HTML код вывода.

▾ 201 функции вызывают theme()

aggregator_block in modules/aggregator/aggregator.module
Реализация hook_block().
aggregator_page_categories in modules/aggregator/aggregator.module
Коллбэк меню; показывает все категории, используемые аггрегатором.
aggregator_page_list in modules/aggregator/aggregator.module
aggregator_page_source in modules/aggregator/aggregator.module
Menu callback; displays all the items captured from a particular feed.
aggregator_page_sources in modules/aggregator/aggregator.module
Коллбэк меню; показывает все фиды, используемые аггрегатором.
aggregator_view in modules/aggregator/aggregator.module
blog_page_last in modules/blog/blog.module
Коллбэк меню. Показывает страницу Друпал с последними записями в блогах пользователей.
blog_page_user in modules/blog/blog.module
Показывает страницу Друпал с последними записями в блоге данного пользователя.
book_admin_overview in modules/book/book.module
Возвращает административный краткий обзор всех книг.
book_export_html in modules/book/book.module
This function is called by book_export() to generate HTML for export.
book_nodeapi in modules/book/book.module
Implementation of hook_nodeapi().
book_render in modules/book/book.module
Menu callback; prints a listing of all books.
chameleon_comment in themes/chameleon/chameleon.theme
chameleon_node in themes/chameleon/chameleon.theme
chameleon_page in themes/chameleon/chameleon.theme
color_form_alter in modules/color/color.module
Реализация hook_form_alter().
comment_admin_overview in modules/comment/comment.module
Конструктор формы; генерирует форму с кратким содержанием комментариев для администратора.
comment_block in modules/comment/comment.module
Реализация hook_block().
comment_form in modules/comment/comment.module
comment_form_add_preview in modules/comment/comment.module
Конструктор формы; Формирует и проверяет форму предпросмотра комментария.
comment_form_box in modules/comment/comment.module
comment_link in modules/comment/comment.module
Реализация hook_link().
comment_links in modules/comment/comment.module
comment_render in modules/comment/comment.module
Отображает комментарии.
comment_reply in modules/comment/comment.module
This function is responsible for generating a comment reply form. There are several cases that have to be handled, including: replies to comments replies to nodes attempts to reply to nodes that can no longer accept comments respecting access...
contact_admin_categories in modules/contact/contact.module
Categories/list tab.
db_connect in includes/database.mysql.inc
Инициализирует соединение с базой данных.
db_set_active in includes/database.inc
Активирует базу данных для последующих запросов.
drupal_access_denied in includes/common.inc
Генерирует ошибку 403 если для просмотра страницы недостаточно прав.
drupal_add_feed in includes/common.inc
Добавляет URL фида для текущей страницы.
drupal_client_page in modules/drupal/drupal.module
Formats a list of all clients.
drupal_not_found in includes/common.inc
Генерирует ошибку 404 (страница не найдена) если запрос не удалось обработать.
drupal_render in includes/common.inc
Формирует HTML-код из структурированного массива.
drupal_site_offline in includes/common.inc
Generates a site off-line message
filter_admin_format_form in modules/filter/filter.module
Generate a filter format form.
filter_filter_tips in modules/filter/filter.module
Реализация hook_filter_tips().
filter_form in modules/filter/filter.module
Generate a selector for choosing a format in a form.
filter_tips_long in modules/filter/filter.module
Menu callback; show a page with long filter tips.
forum_overview in modules/forum/forum.module
Returns an overview list of existing forums and containers
forum_page in modules/forum/forum.module
Menu callback; prints a forum listing.
forum_view in modules/forum/forum.module
Реализация hook_view().
help_page in modules/help/help.module
Menu callback; prints a page listing general help for all modules.
hook_nodeapi in developer/hooks/core.php
Выполняет действия над нодами.
hook_search in developer/hooks/core.php
Определяет пользовательскую функцию поиска.
hook_view in developer/hooks/node.php
Показывает ноду.
install_already_done_error in ./install.php
Show an error page when Drupal has already been installed.
install_change_settings in ./install.php
Configure and rewrite settings.php.
install_check_requirements in ./install.php
Page to check installation requirements and report any errors.
install_complete in ./install.php
Page displayed when the installation is complete. Called from install.php.
install_missing_modules_error in ./install.php
Show an error page when Drupal is missing required modules.
install_no_profile_error in ./install.php
Show an error page when there are no profiles available.
install_select_locale in ./install.php
Find all .po files for the current profile and allow admin to select which to use.
install_select_profile in ./install.php
Find all .profile files and allow admin to select which to install.
menu_block in modules/menu/menu.module
Реализация hook_block().
menu_get_active_help in includes/menu.inc
Возвращает справку связанную с активизированным пунктом меню.
menu_item_link in includes/menu.inc
Returns the rendered link to a menu item.
menu_overview_tree in modules/menu/menu.module
Present the menu tree, rendered along with links to edit menu items.
menu_primary_local_tasks in includes/menu.inc
Возращает оформленные локальные задачи для самого верхнего уровня.
menu_secondary_local_tasks in includes/menu.inc
Возращает оформление HTML вторичных локальных задач.
menu_tree in includes/menu.inc
Возвращает отрендеренное дерево меню.
multipage_form_example_view in developer/examples/multipage_form_example.module
Реализация hook_view().
nodeapi_example_nodeapi in developer/examples/nodeapi_example.module
Реализация hook_nodeapi().
node_admin_nodes in modules/node/node.module
node_block in modules/node/node.module
Реализация hook_block().
node_example_view in developer/examples/node_example.module
Реализация hook_view().
node_node_type in modules/node/content_types.inc
Implementation of hook_node_type().
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.module
Generate a node preview.
node_revision_overview in modules/node/node.module
Generate an overview table of older revisions of a node.
node_search in modules/node/node.module
Implementation of hook_search().
node_title_list in modules/node/node.module
Gather a listing of links to nodes.
node_type_delete_confirm in modules/node/content_types.inc
Menu callback; delete a single content type.
node_type_form in modules/node/content_types.inc
Generates the node type editing form.
node_view in modules/node/node.module
Генерирует вывод ноды.
page_example_baz in developer/examples/page_example.module
Более сложная реализация коллбэка меню для отображения страницы, которая принимает аргументы.
path_overview in modules/path/path.module
Return a listing of all defined URL aliases.
phptemplate_comment in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_comment function to be passed into a pluggable template engine.
phptemplate_node in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_node function to be passed into a pluggable template engine.
phptemplate_page in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_page function to be passed into a pluggable template engine. Uses the arg() function to generate a series of page template files suggestions based on the current path. If none are found, the default page.tpl.php...
poll_page in modules/poll/poll.module
poll_view_results in modules/poll/poll.module
Generates a graphical representation of the results of 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_block in modules/profile/profile.module
Реализация hook_block().
profile_browse in modules/profile/profile.module
Menu callback; display a list of user information.
search_data in modules/search/search.module
Perform a standard search on the given keys, and return the formatted results.
search_view in modules/search/search.module
Menu callback; presents the search form and/or search results.
statistics_access_log in modules/statistics/statistics.module
statistics_node_tracker in modules/statistics/statistics.module
statistics_recent_hits in modules/statistics/statistics.module
Menu callback; presents the 'recent hits' page.
statistics_top_pages in modules/statistics/statistics.module
Menu callback; presents the 'top pages' page.
statistics_top_referrers in modules/statistics/statistics.module
Menu callback; presents the 'referrer' page.
statistics_top_visitors in modules/statistics/statistics.module
Menu callback; presents the 'top visitors' page.
statistics_user_tracker in modules/statistics/statistics.module
system_admin_by_module in modules/system/system.module
Menu callback; prints a listing of admin tasks for each installed module.
system_admin_menu_block_page in modules/system/system.module
Provide a single block from the administration menu as a page. This function is often a destination for these blocks. For example, 'admin/content/types' needs to have a destination to be valid in the Drupal menu system, but too much...
system_main_admin_page in modules/system/system.module
Provide the administration overview page.
system_modules_confirm_form in modules/system/system.module
system_modules_uninstall_confirm_form in modules/system/system.module
Confirm uninstall of selected modules.
system_settings_overview in modules/system/system.module
Menu callback; displays a module's settings page.
system_status in modules/system/system.module
Menu callback: displays the site status report. Can also be used as a pure check.
system_themes in modules/system/system.module
Menu callback; displays a listing of all themes.
system_theme_select_form in modules/system/system.module
Returns a fieldset containing the theme select form.
t in includes/common.inc
Переводит строку на заданный язык или язык страницы.
tablesort_header in includes/tablesort.inc
Format a column header.
taxonomy_overview_terms in modules/taxonomy/taxonomy.module
Display a tree of all the terms in a vocabulary, with options to edit each one.
taxonomy_overview_vocabularies in modules/taxonomy/taxonomy.module
List and manage vocabularies.
taxonomy_render_nodes in modules/taxonomy/taxonomy.module
Принимает результат вызова pager_query(), такой как, например, возвращает taxonomy_select_nodes(), и форматирует каждую ноду вместе с листалкой страниц.
theme_admin_page in modules/system/system.module
Форматирует административную страницу для отображения.
theme_aggregator_block_item in modules/aggregator/aggregator.module
Format an individual feed item for display in the block.
theme_aggregator_feed in modules/aggregator/aggregator.module
Format a news feed.
theme_aggregator_page_list in modules/aggregator/aggregator.module
theme_blocks in includes/theme.inc
Возвращает набор блоков, доступных для текущего пользователя.
theme_block_admin_display in modules/block/block.module
Theme main block administration form submission.
theme_book_admin_table in modules/book/book.module
theme_checkbox in includes/form.inc
Темизирует чекбокс.
theme_checkboxes in includes/form.inc
Изменяет стиль сразу нескольких чекбоксов.
theme_comment in modules/comment/comment.module
theme_comment_admin_overview in modules/comment/comment.module
Темизирует форму комментирования администратора.
theme_comment_block in modules/comment/comment.module
Returns a formatted list of recent comments to be displayed in the comment block.
theme_comment_controls in modules/comment/comment.module
Темизирует область(бокс) контроля комментариев, где пользователь может изменить отображение по умолчанию и упорядочить их показ.
theme_comment_flat_collapsed in modules/comment/comment.module
theme_comment_flat_expanded in modules/comment/comment.module
Темизирует комментарий в раскрытом виде.
theme_comment_folded in modules/comment/comment.module
theme_comment_preview in modules/comment/comment.module
theme_comment_thread_collapsed in modules/comment/comment.module
theme_comment_thread_expanded in modules/comment/comment.module
theme_comment_view in modules/comment/comment.module
theme_date in includes/form.inc
Форматирует дату выбранного элемента.
theme_feed_icon in includes/theme.inc
Возвращает код, который выдает иконку новостной ленты.
theme_file in includes/form.inc
Форматирует поле загрузки файла.
theme_filter_admin_order in modules/filter/filter.module
Темизирует форму конфигурации порядка фильтров.
theme_filter_admin_overview in modules/filter/filter.module
theme_forum_display in modules/forum/forum.module
Format the forum body.
theme_forum_icon in modules/forum/forum.module
Format the icon for each individual topic.
theme_forum_list in modules/forum/forum.module
Format the forum listing.
theme_forum_topic_list in modules/forum/forum.module
Format the topic listing.
theme_install_page in includes/theme.inc
theme_item in includes/form.inc
Возвращает темизированный элемент формы.
theme_locale_admin_manage_screen in includes/locale.inc
Theme the locale admin manager form.
theme_maintenance_page in includes/theme.inc
theme_node in includes/theme.inc
Возвращает темизированную ноду.
theme_node_admin_nodes in modules/node/node.module
Theme node administration overview.
theme_node_list in modules/node/node.module
Форматирует список ссылок на ноды.
theme_node_search_admin in modules/node/node.module
theme_page in includes/theme.inc
Return an entire Drupal page displaying the supplied content.
theme_pager in includes/pager.inc
Темизирует "листалку" страниц.
theme_pager_first in includes/pager.inc
Форматирует ссылку "первая страница".
theme_pager_last in includes/pager.inc
Форматирует ссылку "последняя страница".
theme_pager_list in includes/pager.inc
Format a list of nearby pages with additional query results.
theme_pager_next in includes/pager.inc
Форматирует ссылку "следующая страница".
theme_pager_previous in includes/pager.inc
Форматирует ссылку "предыдущая страница".
theme_password in includes/form.inc
Форматирует поле ввода пароля.
theme_password_confirm in includes/form.inc
Форматирует пункт подтверждения пароля.
theme_phonenumber in developer/examples/example_element.module
Theme function to format the output.
theme_poll_results in modules/poll/poll.module
theme_profile_block in modules/profile/profile.module
theme_profile_listing in modules/profile/profile.module
theme_radio in includes/form.inc
Форматирует одиночный переключатель (радио-кнопку) для их группы.
theme_radios in includes/form.inc
Форматирует сразу несколько радио-кнопок.
theme_search_page in modules/search/search.module
Format the result page of a search query.
theme_select in includes/form.inc
Format a dropdown menu or scrolling selection box.
theme_submit in includes/form.inc
Форматирует кнопку отправки формы.
theme_system_admin_by_module in modules/system/system.module
Темизирует вывод страницы администрирования по модулям.
theme_system_modules in modules/system/system.module
Темизирует форму модулей.
theme_system_modules_uninstall in modules/system/system.module
Темизирует таблицу отключенных на данный момент модулей.
theme_system_themes in modules/system/system.module
theme_system_theme_select_form in modules/system/system.module
Темизирует форму выбора темы.
theme_tablesort_indicator in includes/theme.inc
Return a themed sort icon.
theme_taxonomy_term_select in modules/taxonomy/taxonomy.module
We use the default selection field for choosing terms.
theme_textarea in includes/form.inc
Форматирует многострочное текстовое поле ввода для формы.
theme_textfield in includes/form.inc
Форматирует однострочное текстовое поле ввода.
theme_token in includes/form.inc
Темизирует токен формы.
theme_upload_attachments in modules/upload/upload.module
Отображение прикрепленных файлов в виде таблицы.
theme_upload_form_current in modules/upload/upload.module
Темизирует список прикрепленных файлов (вложений).
theme_user_admin_account in modules/user/user.module
Theme user administration overview.
theme_user_admin_new_role in modules/user/user.module
theme_user_admin_perm in modules/user/user.module
Темизирует страницу управления разрешениями.
theme_user_list in modules/user/user.module
Темизирует список пользователей.
theme_user_picture in modules/user/user.module
theme_user_profile in modules/user/user.module
Theme a user page
theme_xml_icon in includes/theme.inc
Возвращает код, который отображает иконку XML.
tracker_page in modules/tracker/tracker.module
Menu callback. Prints a listing of active nodes on the site.
update_finished_page in ./update.php
update_progress_page_nojs in ./update.php
Perform updates for the non-JS version and return the status page.
upload_js in modules/upload/upload.module
Коллбэк меню для JavaScript загрузок файлов.
upload_nodeapi in modules/upload/upload.module
Implementation of hook_nodeapi().
user_admin_access in modules/user/user.module
Menu callback: list all access rules
user_admin_account in modules/user/user.module
user_block in modules/user/user.module
Реализация hook_block().
user_edit_form in modules/user/user.module
user_login_block in modules/user/user.module
user_view in modules/user/user.module
watchdog_event in modules/watchdog/watchdog.module
Menu callback; displays details about a log message.
watchdog_overview in modules/watchdog/watchdog.module
Menu callback; displays a listing of log messages.
watchdog_top in modules/watchdog/watchdog.module
Menu callback; generic function to display a page of the most frequent watchdog events of a specified type.
_forum_format in modules/forum/forum.module
Formats a topic for display
_locale_string_seek in includes/locale.inc
Perform a string search and display results in a table
_phptemplate_default_variables in themes/engines/phptemplate/phptemplate.engine
Adds additional helper variables to all templates.
_system_sql in modules/system/system.module

Код

<?php
function theme() {
  static $functions;
  $args = func_get_args();
  $function = array_shift($args);

  if (!isset($functions[$function])) {
    $functions[$function] = theme_get_function($function);
  }
  if ($functions[$function]) {
    $output = call_user_func_array($functions[$function], $args);
    // Add final markup to the full page.
    if ($function == 'page' || $function == 'book_export_html') {
      $output = drupal_final_markup($output);
    }
    return $output;
  }
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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