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

Format a dynamic text string for emphasised display in a placeholder.

E.g. t('Added term %term', array('%term' => theme('placeholder', $term)))

Parameters

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

Return value

The formatted text (html).

Related topics

54 theme calls to theme_placeholder()
aggregator_block in modules/aggregator.module
Implementation of hook_block().
aggregator_parse_feed in modules/aggregator.module
aggregator_remove in modules/aggregator.module
block_box_delete in modules/block.module
Menu callback; confirm and delete custom blocks.
blogapi_blogger_edit_post in modules/blogapi.module
Blogging API callback. Modifies the specified blog node.

... See full list

File

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

Code

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