You are here

function theme_contentanalysis_analysis_messages in Content Analysis 8

Same name and namespace in other branches
  1. 6 contentanalysis.module \theme_contentanalysis_analysis_messages()
  2. 7 contentanalysis.module \theme_contentanalysis_analysis_messages()

Themes analysis report messages into output

Parameters

$stats: Analysis messages formatted associative array formatted by contentanalysis_format_message()

Return value

Themed report messages section

1 call to theme_contentanalysis_analysis_messages()
theme_contentanalysis_status_report in ./contentanalysis.module
Theming function for analysis status report

File

./contentanalysis.module, line 1436

Code

function theme_contentanalysis_analysis_messages($msgs) {
  if (!$msgs || !is_array($msgs)) {
    return '';
  }
  foreach ($msgs as $mid => $item) {
    $items[] = array(
      'class' => array(
        $item['#status'],
      ),
      'data' => $item['#value'],
    );
  }
  $vars = array(
    'items' => $items,
    'title' => NULL,
    'type' => 'ul',
    'attributes' => array(
      'class' => array(
        'contentanalysis_messages',
      ),
    ),
  );

  //return theme_item_list($items, NULL, 'ul', array('class' => 'contentanalysis_messages'));
  return theme_item_list($vars);
}