function theme_calendar_view_table in Calendar 5
Same name and namespace in other branches
- 5.2 calendar.theme \theme_calendar_view_table()
Display the nodes of a view as a table.
1 theme call to theme_calendar_view_table()
- theme_calendar_view_calendar in ./
calendar.theme - Calendar Views plugin theme, overrides default views theme to create a calendar view.
File
- ./
calendar.theme, line 90
Code
function theme_calendar_view_table($view, $nodes, $type) {
$fields = _views_get_fields();
$rows = array();
foreach ($nodes as $node) {
$row = array();
foreach ($view->field as $field) {
if ($fields[$field['id']]['visible'] !== FALSE) {
$cell['data'] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view);
$cell['class'] = "view-field " . views_css_safe('view-field-' . $field['queryname']);
$row[] = $cell;
}
}
$rows[] = $row;
}
$rows = array_merge($rows, (array) calendar_add_items($view, 'table'));
return theme('table', $view->table_header, $rows);
}