You are here

function theme_optionwidgets_select in Content Construction Kit (CCK) 6

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

FAPI themes for optionwidgets.

The select, checkboxes or radios are already rendered by the select, checkboxes, or radios themes and the HTML output lives in $element['#children']. Override this theme to make custom changes to the output.

$element['#field_name'] contains the field name $element['#delta] is the position of this element in the group

File

modules/optionwidgets/optionwidgets.module, line 373
Defines selection, check box and radio button widgets for text and numeric fields.

Code

function theme_optionwidgets_select($element) {
  return $element['#children'];
}