function dt

8.0.x dt($string, $args = array())
6.x dt($string, $args = array())
7.x dt($string, $args = array())
3.x dt($string, $args = array())
4.x dt($string, $args = array())
5.x dt($string, $args = array())
master dt($string, $args = array())

Rudimentary replacement for Drupal API t() function.


string: String to process, possibly with replacement item.

array: An associative array of replacement items.

Return value

The processed string.

See also


120 calls to dt()
core_drush_command in commands/core/
Implementation of hook_drush_command().
core_drush_help in commands/core/
Implementation of hook_drush_help().
core_watchdog_format_result in commands/core/
Format a watchdog database row.
core_watchdog_query in commands/core/
Build a WHERE snippet based on given parameters.
drush_backend_fork in includes/
A small utility function to call a drush command in the background.

... See full list


includes/, line 612
The drush API implementation and helpers.


function dt($string, $args = array()) {
  if (function_exists('t')) {
    return t($string, $args);
  else {
    if (!empty($args)) {
      return strtr($string, $args);
    else {
      return $string;