You are here

function _site_disclaimer_i18n in Site Disclaimer 6

Same name and namespace in other branches
  1. 7 site_disclaimer.module \_site_disclaimer_i18n()
1 call to _site_disclaimer_i18n()
site_disclaimer_init in ./site_disclaimer.module
Implementation of hook_init().

File

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

Code

function _site_disclaimer_i18n() {
  $variables = array(
    // Rely on node translations.
    //    'site_disclaimer_node_title',
    //    'site_disclaimer_node_id',
    'site_disclaimer_title',
    'site_disclaimer_checkbox_label',
    'site_disclaimer_version_details',
  );
  $i18n_variables = variable_get('i18n_variables', array());
  if (in_array($variables[0], $i18n_variables)) {
    return;
  }
  $i18n_variables = array_merge($i18n_variables, $variables);
  variable_set('i18n_variables', $i18n_variables);
}