You are here

function theme_text_textfield in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 6 examples/example_field.php \theme_text_textfield()
  2. 6 modules/text/text.module \theme_text_textfield()
  3. 6.2 modules/text/text.module \theme_text_textfield()

FAPI theme for an individual text elements.

The textfield or textarea is already rendered by the textfield or textarea 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/text/text.module, line 483
Defines simple text field types.

Code

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