get_t

Versions
mediamosa-21
get_t()

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

▾ 23 functions call get_t()

batch_process in includes/form.inc
Processes the batch.
batch_set in includes/form.inc
Opens a new batch.
devel_themer_requirements in sites/all/modules/devel/devel_themer.install
hook_requirements in modules/system/system.api.php
Check installation requirements and do status reporting.
mediamosa_requirements in sites/all/modules/mediamosa/mediamosa.module
Implements hook_requirements().
menu_install in modules/menu/menu.install
Implements hook_install().
node_requirements in modules/node/node.module
Implements hook_requirements().
shortcut_install in modules/shortcut/shortcut.install
Implements hook_install().
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_checkbox in includes/form.inc
Theme a checkbox form element.
theme_form_element in includes/form.inc
Theme a form element.
theme_form_element_label in includes/form.inc
Theme a form element label and required marker.
theme_form_required_marker in includes/form.inc
Theme the marker for required form elements.
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.
_mediamosa_migration_empty_tables in sites/all/modules/mediamosa_migration/mediamosa_migration.inc
Loop through table names and check if they exists.
_mediamosa_migration_mediafileid_is_unique in sites/all/modules/mediamosa_migration/mediamosa_migration.inc
Check if the medafile 1.x table has unique mediafile ids. This is because mediafile table has invalid primary key, which will be fixed in 2.x.
_mediamosa_migration_tables_exists in sites/all/modules/mediamosa_migration/mediamosa_migration.inc
Loop through table names and check if they exists.
_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 2045

<?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;
}
?>