Elgg  Version 2.3
messages.php
Go to the documentation of this file.
1 <?php
8 if (isset($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) {
9 
10  echo '<ul class="elgg-system-messages">';
11 
12  foreach ($vars['object'] as $type => $list ) {
13  foreach ($list as $message) {
14  echo "<li class=\"elgg-state-$type\">";
15  echo elgg_autop($message);
16  echo '</li>';
17  }
18  }
19 
20  echo '</ul>';
21 }
$vars['entity']
elgg_autop($string)
Create paragraphs from text with line spacing.
Definition: output.php:46
elgg echo
Translates a string.
Definition: languages.js:48
if(!$display_name) $type
Definition: delete.php:27