Same name and namespace in other branches
  1. 4.6.x includes/theme.inc \theme_placeholder()
  2. 4.7.x includes/theme.inc \theme_placeholder()
  3. 6.x includes/theme.inc \theme_placeholder()

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

Parameters

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

Return value

The formatted text (html).

Related topics

7 theme calls to theme_placeholder()
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.
node_node_type in modules/node/content_types.inc
Implementation of hook_node_type().
node_revision_overview in modules/node/node.module
Generate an overview table of older revisions of a node.

... See full list

File

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

Code

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