You are here

function theme_views_view_list_spaces_shouts in Spaces 5.2

Same name and namespace in other branches
  1. 5 spaces_shoutbox/spaces_shoutbox.module \theme_views_view_list_spaces_shouts()

Custom spaces shout theme f()

File

spaces_shoutbox/spaces_shoutbox.module, line 160

Code

function theme_views_view_list_spaces_shouts($view, $nodes, $type) {
  $fields = _views_get_fields();
  $items = array();
  foreach ($nodes as $node) {
    $item = array();
    foreach ($view->field as $field) {
      if (!isset($fields[$field['id']]['visible']) && $fields[$field['id']]['visible'] !== FALSE) {
        $item[$field['field']] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view);
      }
    }
    $items[] = theme('spaces_shout', $item);
  }
  return implode("\n", $items);
}