theme.inc

  1. drupal
    1. drupal6
    2. drupal7

Version 1.491 (checked in on 2009/05/26 at 10:41:06 by dries)

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.

Funktionen & Methoden

NameBeschreibung
drupal_discover_templateDetermine and return which template file will generate the output.
drupal_find_theme_functionsFind overridden theme functions. Called by themes and/or theme engines to easily discover theme functions.
drupal_find_theme_templatesFind overridden theme templates. Called by themes and/or theme engines to easily discover templates.
drupal_theme_rebuildForce 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_themeInitialize the theme system by loading the theme.
list_themesReturn a list of all currently available themes.
path_to_themeReturn the path to the current themed element.
template_page_suggestionsGenerate an array of page template suggestions.
template_preprocessAdds 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_pageProcess variables for page.tpl.php
themeGenerate the themed output.
theme_breadcrumbReturn a themed breadcrumb trail.
theme_closureExecute hook_footer() which is run at the end of the page right before the close of the body tag.
theme_feed_iconReturn code that emits an feed icon.
theme_get_registryGet the theme registry.
theme_get_settingRetrieve 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_settingsRetrieve an associative array containing the settings for a theme.
theme_imageReturn a themed image.
theme_indentationCreate a standard indentation div. Used for drag and drop tables.
theme_item_listReturn a themed list of items.
theme_linksReturn a themed set of links.
theme_listReturn a themed list of items from a drupal_render() style array.
theme_markReturn a themed marker, useful for marking new or updated content.
theme_more_help_linkReturns code that emits the 'more help'-link.
theme_more_linkReturns code that emits the 'more' link used on blocks.
theme_placeholderFormats text for emphasized display in a placeholder inside a sentence. Used automatically by t().
theme_progress_barReturn a themed progress bar.
theme_render_templateRender a system default template, which is essentially a PHP template.
theme_status_messagesReturn a themed set of status and/or error messages. The messages are grouped by type.
theme_submenuReturn a themed submenu, typically displayed under the tabs.
theme_tableReturn a themed table.
theme_tablesort_indicatorReturn a themed sort icon.
theme_table_select_header_cellReturns a header cell for tables that have a select all functionality.
theme_usernameFormat a username.
_init_themeInitialize the theme system given already loaded information. This function is useful to initialize a theme when no database is present.
_theme_build_registryRebuild the theme registry cache.
_theme_load_registryGet the theme_registry cache from the database; if it doesn't exist, build it.
_theme_process_registryProcess a single implementation of hook_theme().
_theme_save_registryWrite the theme_registry cache into the database.
_theme_set_registryStore the theme registry in memory.
_theme_table_cell

Konstanten

NameBeschreibung
MARK_NEWMark content as being new.
MARK_READMark content as read.
MARK_UPDATEDMark content as being updated.

Verwandte Themen

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen