get_t

Versions
5 – 7
get_t()

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

▾ 17 functions call get_t()

batch_process in includes/form.inc
Processes the batch.
batch_set in includes/form.inc
Opens a new batch.
hook_requirements in modules/system/system.api.php
Check installation requirements and do status reporting.
menu_install in modules/menu/menu.install
Implement hook_install().
node_requirements in modules/node/node.module
Implement hook_requirements().
shortcut_enable in modules/shortcut/shortcut.install
Implement hook_enable().
simpletest_requirements in modules/simpletest/simpletest.install
Check that the cURL extension exists for PHP.
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.
theme_form_element in includes/form.inc
Theme a form element.
theme_form_required_marker in includes/form.inc
Theme the marker for required form elements.
toolbar_install in modules/toolbar/toolbar.install
Implementation of hook_install().
unicode_requirements in includes/unicode.inc
Return Unicode library status and errors.
_country_get_predefined_list in includes/iso.inc
Get an array of all country code => country name pairs.
_form_validate in includes/form.inc
Performs validation on form elements. First ensures required fields are completed, #maxlength is not exceeded, and selected options were in the list of options given to the user. Then calls user-defined validators.
_locale_batch_build in includes/locale.inc
Build a locale batch from an array of files.
_locale_import_message in includes/locale.inc
Sets an error message occurred during locale file parsing.
_unicode_check in includes/unicode.inc
Perform checks about Unicode support in PHP, and set the right settings if needed.

Code

includes/bootstrap.inc, line 1688

<?php
function get_t() {
  static $t;
  // This is not converted to drupal_static because there is no point in
  // resetting this as it can not change in the course of a request.
  if (!isset($t)) {
    $t = drupal_installation_attempted() ? 'st' : 't';
  }
  return $t;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.