/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function phptemplate_views_view_list($view, $nodes, $type) {
$fields = _views_get_fields();
foreach ($nodes as $node) {
$item = '';
foreach ($view->field as $field) {
if ($field['label']) {
$item .= '<div class="view-label view-label-$field[queryname]">'. $field['label'] ."</div>";
}
$item .= views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view) . "<br />";
}
$items[] = "$item"; // l($node->title, "node/$node->nid");
}
if ($items) {
return theme('item_list', $items);
}
}
URL: http://urlgreyhot.com/personal/weblog/drupal_tip_stripping_out_nested_divs_in_views_blocks
Comments
 Subscribe to comments
                    Subscribe to comments
                
                