theme.inc
Version
1.415.2.10 (checked in on 2008/08/16 at 21:06:15 by dries)
Description
The theme system, which controls the output of Drupal.
The theme system allows for nearly all output of the Drupal system to be customized by user themes.
See also
<a href="http://drupal.org/node/253">Theme system</a>
@see themeableConstants
| Name | Description |
|---|---|
| MARK_NEW | |
| MARK_READ | @name Content markers |
| MARK_UPDATED |
Functions
| Name | Description |
|---|---|
| drupal_discover_template | Choose which template file to actually render. These are all suggested templates from themes and modules. Theming implementations can occur on multiple levels. All paths are checked to account for this. |
| drupal_find_theme_functions | Find overridden theme functions. Called by themes and/or theme engines to easily discover theme functions. |
| drupal_find_theme_templates | Find overridden theme templates. Called by themes and/or theme engines to easily discover templates. |
| drupal_rebuild_theme_registry | Force the system to rebuild the theme registry; this should be called when modules are added to the system, or when a dynamic system needs to add more theme hooks. |
| init_theme | Initialize the theme system by loading the theme. |
| list_themes | Provides a list of currently available themes. |
| path_to_theme | Return the path to the currently selected theme. |
| template_preprocess | Adds a default set of helper variables for preprocess functions and templates. This comes in before any other preprocess function which makes it possible to be used in default theme implementations (non-overriden theme functions). |
| template_preprocess_block | Process variables for block.tpl.php |
| template_preprocess_node | Process variables for node.tpl.php |
| template_preprocess_page | Process variables for page.tpl.php |
| theme | Generate the themed output. |
| theme_blocks | Return a set of blocks available for the current user. |
| theme_box | Return a themed box. |
| theme_breadcrumb | Return a themed breadcrumb trail. |
| theme_closure | Execute hook_footer() which is run at the end of the page right before the close of the body tag. |
| theme_feed_icon | Return code that emits an feed icon. |
| theme_get_registry | Retrieve the stored theme registry. If the theme registry is already in memory it will be returned; otherwise it will attempt to load the registry from cache. If this fails, it will construct the registry and cache it. |
| theme_get_setting | Retrieve a setting for the current theme. This function is designed for use from within themes & engines to determine theme settings made in the admin interface. |
| theme_get_settings | Retrieve an associative array containing the settings for a theme. |
| theme_help | Return a themed help message. |
| theme_image | Return a themed image. |
| theme_indentation | Create a standard indentation div. Used for drag and drop tables. |
| theme_item_list | Return a themed list of items. |
| theme_links | Return a themed set of links. |
| theme_mark | Return a themed marker, useful for marking new or updated content. |
| theme_more_help_link | Returns code that emits the 'more help'-link. |
| theme_more_link | Returns code that emits the 'more' link used on blocks. |
| theme_placeholder | Formats text for emphasized display in a placeholder inside a sentence. Used automatically by t(). |
| theme_progress_bar | Return a themed progress bar. |
| theme_render_template | Render a system default template, which is essentially a PHP template. |
| theme_status_messages | Return a themed set of status and/or error messages. The messages are grouped by type. |
| theme_submenu | Return a themed submenu, typically displayed under the tabs. |
| theme_table | Return a themed table. |
| theme_tablesort_indicator | Return a themed sort icon. |
| theme_table_select_header_cell | Returns a header cell for tables that have a select all functionality. |
| theme_username | Format a username. |
| theme_xml_icon | Return code that emits an XML icon. |
| _init_theme | Initialize the theme system given already loaded information. This function is useful to initialize a theme when no database is present. |
| _theme_build_registry | Rebuild the hook theme_registry cache. |
| _theme_load_registry | Get the theme_registry cache from the database; if it doesn't exist, build it. |
| _theme_process_registry | Process a single invocation of the theme hook. $type will be one of 'module', 'theme_engine', 'base_theme_engine', 'theme', or 'base_theme' and it tells us some important information. |
| _theme_save_registry | Write the theme_registry cache into the database. |
| _theme_set_registry | Store the theme registry in memory. |
| _theme_table_cell |
