function drupal_placeholder
7.x bootstrap.inc | drupal_placeholder($text) |
Formats text for emphasized display in a placeholder inside a sentence.
Used automatically by format_string().
Parameters
$text: The text to format (plain-text).
Return value
The formatted text (html).
6 calls to drupal_placeholder()
- filter_admin_overview in drupal-7.x/
modules/ filter/ filter.admin.inc - Page callback: Form constructor for a form to list and reorder text formats.
- filter_permission in drupal-7.x/
modules/ filter/ filter.module - Implements hook_permission().
- format_string in drupal-7.x/
includes/ bootstrap.inc - Formats a string for HTML display by replacing variable placeholders.
- node_revision_overview in drupal-7.x/
modules/ node/ node.pages.inc - Generates an overview table of older revisions of a node.
- profile_browse in drupal-7.x/
modules/ profile/ profile.pages.inc - Menu callback; display a list of user information.
File
- drupal-7.x/
includes/ bootstrap.inc, line 3396 - Functions that need to be loaded on every Drupal request.
Code
function drupal_placeholder($text) {
return '<em class="placeholder">' . check_plain($text) . '</em>';
}