You are here

function messaging_template_fallback in Messaging 6.3

Get next enabled template fallback

7 calls to messaging_template_fallback()
messaging_template_admin_description in messaging_template/messaging_template.admin.inc
Build template description
messaging_template_admin_overview in messaging_template/messaging_template.admin.inc
messaging_template_edit_form in messaging_template/messaging_template.admin.inc
Edit message formats
Messaging_Template_Engine::type_fallback in messaging_template/messaging_template.inc
Get type fallback
messaging_template_get_defaults in messaging_template/messaging_template.module
Get default text defined by modules

... See full list

File

messaging_template/messaging_template.module, line 138
Template system for Messaging Framework

Code

function messaging_template_fallback($name) {
  if ($fallback = messaging_template_info($name, 'fallback')) {
    if (messaging_template_info($fallback, 'enabled')) {
      return $fallback;
    }
    else {
      return messaging_template_fallback($fallback);
    }
  }
}