You are here

function shurly_errors_to_form in ShURLy 6

Set errors on form items (for use with form API)

1 call to shurly_errors_to_form()
shurly_create_form_validate in ./shurly.module

File

./shurly.module, line 922
description http://www.youtube.com/watch?v=Qo7qoonzTCE

Code

function shurly_errors_to_form() {
  $errors = shurly_set_error();
  foreach ($errors as $error) {
    form_set_error($error['field'], $error['message']);
  }
}