theme_placeholder

Definition

theme_placeholder($text)
includes/theme.inc, line 363

Description

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

Namesort iconDescription
Themeable functionsFunctions that display HTML, and which can be customized by themes.

Code

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

Drupal is a registered trademark of Dries Buytaert.