You are here

function _site_disclaimer_variable_get_translated in Site Disclaimer 7

Get selected translation of the variable.

3 calls to _site_disclaimer_variable_get_translated()
site_disclaimer_confirm in ./site_disclaimer.pages.inc
Display the Site Disclaimer, when a user needs to confirm them after registering.
site_disclaimer_form_user_register_form_alter in ./site_disclaimer.module
Implements hook_form_form_id_alter().
_site_disclaimer_enabled in ./site_disclaimer.module
Determine if site_disclaimer is enabled.

File

./site_disclaimer.module, line 350
This module adds Site Disclaimer to the registration page.

Code

function _site_disclaimer_variable_get_translated($name, $default = '', $langcode = NULL) {
  if (!empty($langcode) && module_exists('i18n_variable')) {
    return i18n_variable_get($name, $langcode, $default);
  }
  else {
    return variable_get($name, $default);
  }
}