You are here

function template_preprocess_fieldgroup_simple in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 6.3 modules/fieldgroup/fieldgroup.module \template_preprocess_fieldgroup_simple()
  2. 6.2 modules/fieldgroup/fieldgroup.module \template_preprocess_fieldgroup_simple()

Process variables for fieldgroup.tpl.php.

The $variables array contains the following arguments:

  • $group_name
  • $group_name_css
  • $label
  • $description
  • $content

See also

fieldgroup.tpl.php

File

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

Code

function template_preprocess_fieldgroup_simple(&$variables) {
  $element = $variables['element'];
  $variables['group_name'] = $element['#group_name'];
  $variables['group_name_css'] = strtr($element['#group_name'], '_', '-');
  $variables['label'] = isset($element['#title']) ? $element['#title'] : '';
  $variables['description'] = isset($element['#description']) ? $element['#description'] : '';
  $variables['content'] = isset($element['#children']) ? $element['#children'] : '';
}