function addthis_field_widget_error in AddThis 7.4
Implements hook_field_widget_error().
File
- includes/
addthis.field.inc, line 153 - Field related hook implementations for the AddThis-module.
Code
function addthis_field_widget_error($element, $error, $form, &$form_state) {
switch ($error['error']) {
default:
$error_element = $element[$element['#columns'][0]];
break;
}
form_error($error_element, $error['message']);
}