function drupal_placeholder
Same name in other branches
- 8.9.x core/includes/bootstrap.inc \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).
6 calls to drupal_placeholder()
- filter_admin_overview in modules/
filter/ filter.admin.inc - Page callback: Form constructor for a form to list and reorder text formats.
- filter_permission in modules/
filter/ filter.module - Implements hook_permission().
- format_string in includes/
bootstrap.inc - Formats a string for HTML display by replacing variable placeholders.
- node_revision_overview in modules/
node/ node.pages.inc - Generates an overview table of older revisions of a node.
- profile_browse in modules/
profile/ profile.pages.inc - Menu callback; display a list of user information.
File
-
includes/
bootstrap.inc, line 3820
Code
function drupal_placeholder($text) {
return '<em class="placeholder">' . check_plain($text) . '</em>';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.