| 5 theme.inc | theme_placeholder($text) |
| 6 theme.inc | theme_placeholder($text) |
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
6 theme calls to theme_placeholder()
File
- includes/
theme.inc, line 1160 - The theme system, which controls the output of Drupal.
Code
function theme_placeholder($text) {
return '<em>' . check_plain($text) . '</em>';
}
Login or register to post comments
Comments
in D7: drupal_placeholder
In D7, the function became drupal_placeholder