You are here

function download_field_widget_error in Download 7

Same name and namespace in other branches
  1. 7.2 download.module \download_field_widget_error()

Implements hook_field_widget_error().

File

./download.module, line 191
Handles module administration and download link

Code

function download_field_widget_error($element, $error, $form, &$form_state) {
  switch ($error['error']) {
    case 'download_link_invalid':
      form_error($element, $error['message']);
      break;
  }
}