function drupal_placeholder

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).

5 calls to drupal_placeholder()
filter_admin_overview in drupal/core/modules/filter/filter.admin.inc
Form constructor for a form to list and reorder text formats.
filter_permission in drupal/core/modules/filter/filter.module
Implements hook_permission().
format_string in drupal/core/includes/bootstrap.inc
Replaces placeholders with sanitized values in a string.
node_revision_overview in drupal/core/modules/node/node.pages.inc
Page callback: Generates an overview table of older revisions of a node.
theme_update_report in drupal/core/modules/update/update.report.inc
Returns HTML for the project status report.

File

drupal/core/includes/bootstrap.inc, line 3313
Functions that need to be loaded on every Drupal request.

Code

function drupal_placeholder($text) {
  return '<em class="placeholder">' . check_plain($text) . '</em>';
}