function template_preprocess_message_digest in Message Digest 8
Prepares messages to be concatenated into a digest.
Parameters
array $variables: An associative array containing:
- 'elements': An associative array containing renderable messages to be condensed into a digest.
File
- ./
message_digest.module, line 86 - Hook implementations for the Message Digest module.
Code
function template_preprocess_message_digest(array &$variables) {
$elements = $variables['elements'];
foreach (Element::children($elements) as $key) {
$variables['messages'][$key] = $elements[$key];
}
}