theme_placeholder

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

Format a dynamic text string for emphasised 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 363

<?php
function theme_placeholder($text) {
  return '<em>'. check_plain($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.