Implements hook_form_alter(). Replace the user_validate_picture validator with our own.
File
-
./
exif_orientation.module, line 12
Code
function exif_orientation_form_user_profile_form_alter(&$form, &$form_state, $form_id) {
$key = array_search('user_validate_picture', $form['#validate']);
$form['#validate'][$key] = '_exif_orientation_validate_user_picture';
}