- drupal
- 4.7
- 5
- 6 theme.inc
- 7 theme.inc
Generate the themed representation of a Drupal object.
All requests for themed functions must go through this function. It examines
the request and routes it to the appropriate theme function. If the current
theme does not implement the requested function, then the current theme
engine is checked. If neither the engine nor theme implement the requested
function, then the base theme function is called.
For example, to retrieve the HTML that is output by theme_page($output), a
module should call theme('page', $output).
Parameters
$function
The name of the theme function to call.
...
Additional arguments to pass along to the theme function.
Return value
An HTML string that generates the themed output.
- aggregator_block in modules/aggregator/aggregator.module
- Implementation of hook_block().
- aggregator_page_categories in modules/aggregator/aggregator.module
- Menu callback; displays all the categories used by the aggregator.
- 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
- Menu callback; displays all the feeds used by the aggregator.
- aggregator_view in modules/aggregator/aggregator.module
- blog_page_last in modules/blog/blog.module
- Displays a Drupal page containing recent blog entries of all users.
- blog_page_user in modules/blog/blog.module
- Displays a Drupal page containing recent blog entries of a given user.
- book_admin_overview in modules/book/book.module
- Returns an administrative overview of all books.
- 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
- Implementation of hook_form_alter().
- comment_admin_overview in modules/comment/comment.module
- comment_block in modules/comment/comment.module
- Implementation of 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
- Implementation of hook_link().
- comment_links in modules/comment/comment.module
- comment_render in modules/comment/comment.module
- Renders comment(s).
- 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:
- contact_admin_categories in modules/contact/contact.module
- Categories/list tab.
- db_connect in includes/database.mysql.inc
- Initialize a database connection.
- db_connect in includes/database.mysqli.inc
- Initialise a database connection.
- db_connect in includes/database.pgsql.inc
- Initialize a database connection.
- db_set_active in includes/database.inc
- Activate a database for future queries.
- drupal_access_denied in includes/common.inc
- Generates a 403 error if the request is not allowed.
- drupal_add_feed in includes/common.inc
- Add a feed URL for the current page.
- drupal_client_page in modules/drupal/drupal.module
- Formats a list of all clients.
- drupal_not_found in includes/common.inc
- Generates a 404 error if the request can not be handled.
- drupal_render in includes/common.inc
- Renders HTML given a structured array tree. Recursively iterates over each
of the array elements, generating HTML code. This function is usually
called from within a another function, like drupal_get_form() or node_view().
- 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
- Implementation of 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
- Implementation of 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
- Act on nodes defined by other modules.
- hook_search in developer/hooks/core.php
- Define a custom search routine.
- hook_view in developer/hooks/node.php
- Display a node.
- 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
- Implementation of hook_block().
- menu_get_active_help in includes/menu.inc
- Returns the help associated with the active menu item.
- 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
- Returns the rendered HTML of the primary local tasks.
- menu_secondary_local_tasks in includes/menu.inc
- Returns the rendered HTML of the secondary local tasks.
- menu_tree in includes/menu.inc
- Returns a rendered menu tree.
- multipage_form_example_view in developer/examples/multipage_form_example.module
- Implementation of hook_view().
- nodeapi_example_nodeapi in developer/examples/nodeapi_example.module
- Implementation of hook_nodeapi().
- node_admin_nodes in modules/node/node.module
- node_block in modules/node/node.module
- Implementation of hook_block().
- node_example_view in developer/examples/node_example.module
- Implementation of 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
- Generate a display of the given node.
- page_example_baz in developer/examples/page_example.module
- A more complex page callback that takes arguments.
- 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
- Implementation of 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
- Translate strings to the current locale.
- 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
- Accepts the result of a pager_query() call, such as that performed by
taxonomy_select_nodes(), and formats each node along with a pager.
- theme_admin_page in modules/system/system.module
- This function formats an administrative page for viewing.
- 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
- Return a set of blocks available for the current user.
- 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
- Format a checkbox.
- theme_checkboxes in includes/form.inc
- Format a set of checkboxes.
- 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
- Format a date selection element.
- theme_feed_icon in includes/theme.inc
- Return code that emits an feed icon.
- theme_file in includes/form.inc
- Format a file upload field.
- theme_filter_admin_order in modules/filter/filter.module
- Theme filter order configuration form.
- 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
- Format a form item.
- 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
- Return a themed node.
- theme_node_admin_nodes in modules/node/node.module
- Theme node administration overview.
- theme_node_list in modules/node/node.module
- Format a listing of links to nodes.
- 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
- Format a query pager.
- theme_pager_first in includes/pager.inc
- Format a "first page" link.
- theme_pager_last in includes/pager.inc
- Format a "last page" link.
- theme_pager_list in includes/pager.inc
- Format a list of nearby pages with additional query results.
- theme_pager_next in includes/pager.inc
- Format a "next page" link.
- theme_pager_previous in includes/pager.inc
- Format a "previous page" link.
- theme_password in includes/form.inc
- Format a password field.
*
- theme_password_confirm in includes/form.inc
- Format a password_confirm item.
- 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
- Format a radio button.
- theme_radios in includes/form.inc
- Format a set of radio buttons.
- 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 output of the dashboard page.
- theme_system_modules in modules/system/system.module
- Theme call back for the modules form.
- theme_system_modules_uninstall in modules/system/system.module
- Themes a table of currently disabled modules.
- 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
- Format a textarea.
- theme_textfield in includes/form.inc
- Format a textfield.
- theme_token in includes/form.inc
- theme_upload_attachments in modules/upload/upload.module
- Displays file attachments in table
- theme_upload_form_current in modules/upload/upload.module
- Theme the attachments list.
- 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
- Make a list of users.
- 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
- Return code that emits an XML icon.
- 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
- Menu-callback for JavaScript-based uploads.
- 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
- Implementation of 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
Code
includes/theme.inc, line 162
<?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);
if ($function == 'page' || $function == 'book_export_html') {
$output = drupal_final_markup($output);
}
return $output;
}
}
?>