theme_placeholder

Versions
4.6 – 6
theme_placeholder($text)
7
theme_placeholder($variables)

Formats text for emphasized display in a placeholder inside a sentence. Used automatically by t().

Parameters

$variables An associative array containing:

  • text: The text to format (plain-text).

Return value

The formatted text (html).

Related topics

Code

includes/theme.inc, line 1320

<?php
function theme_placeholder($variables) {
  return '<em>' . check_plain($variables['text']) . '</em>';
}
?>
Login or register to post comments
 
 

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.