You are here

function theme_fieldgroup_simple in Content Construction Kit (CCK) 5

File

./fieldgroup.module, line 415
Create field groups for CCK fields.

Code

function theme_fieldgroup_simple($element) {
  $output = '<div' . drupal_attributes($element['#attributes']) . '>';
  if ($element['#title']) {
    $output .= '<h2>' . $element['#title'] . '</h2>';
    $output .= $element['#description'] ? '<div class="description">' . $element['#description'] . '</div>' : '';
  }
  $output .= '<div class="content">' . $element['#children'] . '</div>';
  $output .= '</div>';
  return $output;
}