5.x bootstrap.inc get_t()
6.x bootstrap.inc get_t()
7.x bootstrap.inc get_t()

Return the name of the localisation function. Use in code that needs to run both during installation and normal operation.

15 calls to get_t()
batch_process in includes/form.inc
Processes the batch.
batch_set in includes/form.inc
Opens a new batch.
db_check_setup in includes/database.pgsql.inc
Verify if the database is set up correctly.
db_status_report in includes/database.mysql.inc
Report database status.
db_status_report in includes/database.mysqli.inc
Report database status.

... See full list

File

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

Code

function get_t() {
  static $t;
  if (is_null($t)) {
    $t = function_exists('install_main') ? 'st' : 't';
  }
  return $t;
}