You are here

function iframe_DISABLED_field_widget_error in Iframe 7

Implements hook_field_widget_error().

File

./iframe.module, line 785
Defines an iframe field with all attributes.

Code

function iframe_DISABLED_field_widget_error($element, $error) {
  switch ($error['error']) {
    case 'widthsize':
      form_error($element['width'], $error['message']);
      break;
    case 'heightsize':
      form_error($element['height'], $error['message']);
      break;
  }
}