You are here

function media_update_validate in Media Update 7.2

Same name and namespace in other branches
  1. 7 media_update.module \media_update_validate()

Provides validation based on hook_media_update_params.

Checks to ensure that an update is actually occurring, stores the existing file, then performs a validation based on our validation params.

1 string reference to 'media_update_validate'
media_update_form_media_edit_alter in ./media_update.module
Implements hook_form_FORM_ID_alter().

File

./media_update.module, line 105
Defines the module media_update.

Code

function media_update_validate($form, &$form_state) {
  if (isset($form_state['update_field']) && _media_update_should_validate($form_state)) {
    _media_update_original_file($form_state['file']);
    $form_state['update_validate']($form, $form_state);
  }
}