You are here

function multiselect_field_widget_error in Multiselect 7

Implements hook_field_error().

File

./multiselect.module, line 195
Allows users to select multiple items in an easier way than the normal node-reference widget.

Code

function multiselect_field_widget_error($element, $error) {
  switch ($error['error']) {
    case 'field_cardinality':
      form_error($element, $error['message']);
      break;
  }
}