You are here

function _site_disclaimer_i18n in Site Disclaimer 7

Same name and namespace in other branches
  1. 6 site_disclaimer.module \_site_disclaimer_i18n()

File

./site_disclaimer.module, line 494
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);
}