function format_string

Formats a string for HTML display by replacing variable placeholders.

See also

\Drupal\Component\Utility\String::format()

t()

Related topics

331 calls to format_string()
ActiveTest::_testActiveHelper in drupal/core/modules/field/lib/Drupal/field/Tests/ActiveTest.php
Helper function for testActive().
AddFeedTest::testBasicFeedAddNoTitle in drupal/core/modules/system/lib/Drupal/system/Tests/Common/AddFeedTest.php
Tests drupal_add_feed() with paths, URLs, and titles.
AggregatorConfigurationTest::testSettingsPage in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorConfigurationTest.php
Tests the settings form to ensure the correct default values are used.
AggregatorRenderingTest::testBlockLinks in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorRenderingTest.php
Adds a feed block to the page and checks its links.
AggregatorTestBase::createFeed in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php
Creates an aggregator feed.

... See full list

File

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

Code

function format_string($string, array $args = array()) {
  return String::format($string, $args);
}