function jewcy06_views_view_list_h_stories($view, $nodes, $type) { $count = 0; foreach ($nodes as $node) { $count++; $nodetitle = format_truncate($node->node_title, 40); if ($nodetitle != $node->node_title) { $nodetitle .= "..."; } $output .= "
  • " . $nodetitle . "
  • \n"; if ($count == 3 || $count == 6 || $count == 9) { $final .= "
    "; $final .= '
    '; $final .= '
    '; $final .= '

    '; $final .= "\n
    "; $output = ""; } } if ($final) { return $final; } }