You are here

function messaging_template_language_fallback in Messaging 6.4

Get language fallback, that will be default language if this is not the default

1 call to messaging_template_language_fallback()
messaging_template_text_part in messaging_template/messaging_template.module
Get text part with group and method fallback

File

messaging_template/messaging_template.module, line 259
Drupal Messaging Framework - Messaging template

Code

function messaging_template_language_fallback($language) {
  $default = language_default();
  return $language->language != $default->language ? $default : NULL;
}