You are here

function flag_confirm_validate in Flag 7.3

Validate handler for the flag confirm form.

Validate any Field API fields on the Flagging.

See also

flag_confirm()

File

includes/flag.pages.inc, line 135
Menu callbacks for the Flag module.

Code

function flag_confirm_validate($form, &$form_state) {

  // Only validate the entity fields when we're saving an entity.
  $action = $form_state['values']['action'];
  if ($action == 'flag') {
    entity_form_field_validate('flagging', $form, $form_state);
  }
}