You are here

function messaging_template_message_defaults in Messaging 6.4

Returns parts of messages, that may be formatted for each sending method

Parameters

$group: Message group.

$language: Language to localize defaults

1 call to messaging_template_message_defaults()
_messaging_template_message_part in messaging_template/messaging_template.module
Load message parts from db or get defaults from module

File

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

Code

function messaging_template_message_defaults($group, $language) {
  $info =& messaging_static(__FUNCTION__);
  if (!isset($info[$language->language][$group])) {
    $info[$language->language][$group] = module_invoke_all('messaging', 'messages', $group, $language);
  }
  return $info[$language->language][$group];
}