theme_placeholder

  1. drupal
    1. 4.7
    2. 5
    3. 6 theme.inc
Versions
4.7 – 6 theme_placeholder($text)

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

Code

includes/theme.inc, line 377

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