Same name and namespace in other branches
- 4.6.x includes/theme.inc \theme_placeholder()
- 4.7.x includes/theme.inc \theme_placeholder()
- 5.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
4 theme calls to theme_placeholder()
- node_revision_overview in modules/
node/ node.pages.inc - Generate an overview table of older revisions of a node.
- profile_browse in modules/
profile/ profile.pages.inc - Menu callback; display a list of user information.
- theme_update_report in modules/
update/ update.report.inc - Theme project status report.
- _db_error_page in includes/
database.inc - Helper function to show fatal database errors.
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>';
}