function theme_tablefield_view in TableField 6
Same name and namespace in other branches
- 7.3 tablefield.module \theme_tablefield_view()
- 7 tablefield.module \theme_tablefield_view()
- 7.2 tablefield.module \theme_tablefield_view()
Theme function for table view
1 theme call to theme_tablefield_view()
- tablefield_field in ./
tablefield.module - Implementation of hook_field().
File
- ./
tablefield.module, line 197 - This module provides a set of fields that can be used to store tabular data with a node. The implementation uses a custom CCK widget.
Code
function theme_tablefield_view($header, $rows, $field_name, $delta) {
$class_field_name = str_replace('_', '-', $field_name);
return '<div id="tablefield-wrapper-' . $class_field_name . '-' . $delta . '" class="tablefield-wrapper">' . theme('table', $header, $rows, array(
'id' => 'tablefield-' . $class_field_name . '-' . $delta,
'class' => 'tablefield',
)) . '</div>';
}