You are here

function theme_tablefield_view in TableField 7

Same name and namespace in other branches
  1. 6 tablefield.module \theme_tablefield_view()
  2. 7.3 tablefield.module \theme_tablefield_view()
  3. 7.2 tablefield.module \theme_tablefield_view()

Theme function for table view

1 theme call to theme_tablefield_view()
tablefield_field_formatter_view in ./tablefield.module
Implements hook_field_formatter_view().

File

./tablefield.module, line 636
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($variables) {
  $attributes = array(
    'id' => 'tablefield-' . $variables['delta'],
    'class' => array(
      'tablefield',
    ),
  );
  return '<div id="tablefield-wrapper-' . $variables['delta'] . '" class="tablefield-wrapper">' . theme('table', array(
    'header' => $variables['header'],
    'rows' => $variables['rows'],
    'attributes' => $attributes,
  )) . '</div>';
}