theme_placeholder

includes/theme.inc, line 380

Versions
4.6 – 7
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

Code

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

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.