public function TripalFieldWidget::theme

3.x TripalFieldWidget.inc public TripalFieldWidget::theme($element)

The theme function for the widget.

Parameters

$element: A form element array containing basic properties for the widget:

  • #entity_type: The name of the entity the field is attached to.
  • #bundle: The name of the field bundle the field is contained in.
  • #field_name: The name of the field.
  • #language: The language the field is being edited in.
  • #field_parents: The 'parents' space for the field in the form. Most widgets can simply overlook this property. This identifies the location where the field values are placed within $form_state['values'], and is used to access processing information for the field through the field_form_get_state() and field_form_set_state() functions.
  • #columns: A list of field storage columns of the field.
  • #title: The sanitized element label for the field instance, ready for output.
  • #description: The sanitized element description for the field instance, ready for output.
  • #required: A Boolean indicating whether the element value is required; for required multiple value fields, only the first widget's values are required.
  • #delta: The order of this item in the array of subelements; see $delta above

Return value

A drupal renderable array or HTML or an empty string if no theming is to be applied.

6 methods override TripalFieldWidget::theme()
data__accession_widget::theme in tripal_chado/includes/TripalFields/data__accession/data__accession_widget.inc
sbo__database_cross_reference_widget::theme in tripal_chado/includes/TripalFields/sbo__database_cross_reference/sbo__database_cross_reference_widget.inc
sbo__relationship_widget::theme in tripal_chado/includes/TripalFields/sbo__relationship/sbo__relationship_widget.inc
Theme function for the sbo__relationship_widget.
schema__alternate_name_widget::theme in tripal_chado/includes/TripalFields/schema__alternate_name/schema__alternate_name_widget.inc
schema__publication_widget::theme in tripal_chado/includes/TripalFields/schema__publication/schema__publication_widget.inc

... See full list

File

tripal/includes/TripalFields/TripalFieldWidget.inc, line 197

Class

TripalFieldWidget

Code

public function theme($element) {
}