theme_placeholder

Definition

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

Description

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

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.