Common Theme System Functions

The theme.inc file controls the Drupal theme system. In addition to the initializing of loading the theme system, the file contains a number of themable functions that relate specifically to various key elements in Drupal. The functions can be found in two files: includes/theme.inc and includes/theme.maintenance.inc.

Here is a table of the functions and a description of each one:

Function

Path

Description

theme_

box

includes/theme.

. inc

Creates a themed box (container).

theme_

breadcrumb

includes/theme.

. inc

Handles the breadcrumb trail.

theme_

closure

includes/theme.

inc

Formats the hook footer() at

the end of the page.

theme_

feed icon

includes/theme.

inc

Enables a feed icon.

theme_

image

includes/theme.

inc

Themes an image.

theme_

indentation

includes/theme.

inc

Provides a div for standardizing

indentation.

theme_

item list

includes/theme.

inc

Returns a themed list of items.

Function

Path

Description

theme links

includes/theme.

inc

Styles a list of links (such as primary and secondary links).

theme mark

includes/theme.

inc

Returns a themed marker for content (spell out, new, updated).

theme more help link

includes/theme.

inc

Produces the more help link.

theme more link

includes/theme.

inc

Produces the more link seen in blocks.

theme_placeholder

includes/theme.

inc

Formats text for display in a placeholder.

theme_progress bar

includes/theme.

inc

Displays the percentage complete progress bar.

theme_status_

includes/theme.

inc

Formats status and error

messages

messages.

theme_table

includes/theme.

inc

Formats a table.

theme table select

includes/theme.

inc

Controls the header cell of tables

header cell

that have a select-all functionality.

theme_tablesort_

includes/theme.

inc

Produces the sort icon.

indicator

theme_task_list

includes/theme.

Formats the list of maintenance

maintenance.inc

tasks.

theme username

includes/theme.

inc

Formats the user name.

theme_xml_icon

includes/theme.

inc

Generates an XML icon.

Was this article helpful?

0 0

Post a comment