You are here

function _notifications_content_test_format_message in Notifications 7

Same name and namespace in other branches
  1. 6.4 notifications_content/notifications_content.pages.inc \_notifications_content_test_format_message()

Format resulting message array as table

1 call to _notifications_content_test_format_message()
notifications_content_test_template_form in notifications_content/notifications_content.admin.inc
Template testing form

File

notifications_content/notifications_content.admin.inc, line 190
Subscriptions to content events

Code

function _notifications_content_test_format_message($message) {
  $rows = array();
  foreach ($message as $key => $value) {
    $rows[] = array(
      $key,
      is_array($value) ? _notifications_content_test_format_message($value) : '<pre>' . check_plain($value) . '</pre>',
    );
  }
  return theme('table', array(), $rows);
}