theme_placeholder

Definition

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

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
Default theme implementationsFunctions and templates that present output to the user, and can be implemented by themes.

Code

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

Drupal is a registered trademark of Dries Buytaert.