You are here

function template_preprocess_message_digest_rows in Message Digest 8

Prepares variables for individual messages in a digest.

Parameters

array $variables: An associative array containing:

  • 'elements': An associative array containing renderable rows.

File

./message_digest.module, line 70
Hook implementations for the Message Digest module.

Code

function template_preprocess_message_digest_rows(array &$variables) {
  $elements = $variables['elements'];
  foreach (Element::children($elements) as $key) {
    $variables['rows'][$key] = $elements[$key];
  }
  $variables['message'] = $elements['#message'];
}