You are here

function multifield_table_field_widget_form in Multifield table 7

Implements hook_field_widget_form().

File

./multifield_table.module, line 257
Provides a table formatter and widget for multifield field types.

Code

function multifield_table_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
  switch ($instance['widget']['type']) {
    case 'multifield_table':
      $instance['widget']['type'] = 'multifield_default';
      $element = multifield_field_widget_form($form, $form_state, $field, $instance, $langcode, $items, $delta, $element);
      break;
  }
  return $element;
}