Same name and namespace in other branches
  1. 4.6.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 emphasized 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

96 theme calls to theme_placeholder()
aggregator_admin_remove_feed in modules/aggregator.module
aggregator_block in modules/aggregator.module
Implementation of hook_block().
aggregator_form_category_submit in modules/aggregator.module
Process aggregator_form_category form submissions. @todo Add delete confirmation dialog.
aggregator_form_category_validate in modules/aggregator.module
Validate aggregator_form_feed form submissions.
aggregator_form_feed_submit in modules/aggregator.module
Process aggregator_form_feed form submissions. @todo Add delete confirmation dialog.

... See full list

File

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

Code

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