4.6.x theme.inc theme_placeholder($text)
4.7.x theme.inc theme_placeholder($text)
5.x theme.inc theme_placeholder($text)
6.x theme.inc theme_placeholder($text)

Formats text for emphasized display in a placeholder inside a sentence. Used automatically by t().


$text: The text to format (plain-text).

Return value

The formatted text (html).

Related topics

6 theme calls to theme_placeholder()
node_revision_overview in modules/node/node.pages.inc
Generate an overview table of older revisions of a node.
node_type_form in modules/node/content_types.inc
Generates the node type editing form.
profile_browse in modules/profile/profile.pages.inc
Menu callback; display a list of user information.
t in includes/common.inc
Translate strings to the page language or a given language.
theme_update_report in modules/update/update.report.inc
Theme project status report.

... See full list


includes/theme.inc, line 1160
The theme system, which controls the output of Drupal.


function theme_placeholder($text) {
  return '<em>' . check_plain($text) . '</em>';


pkiraly’s picture

In D7, the function became drupal_placeholder