Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
you can hook_form_alter user_profile_form and overwrite the validation in #validate of $form.
Then you could add another validation
or
remove 'user_validate_picture', copy this function and replace with a function which checks also for filetype.
@dereine: Unfortunately, this is too difficult for me. As my nick describes I'm a designer. :)
Nevertheless, thank you very much for your help! Maybe one day I'll get it. *optimist*
Comments
Comment #1
dawehneryou can hook_form_alter user_profile_form and overwrite the validation in #validate of $form.
Then you could add another validation
or
remove 'user_validate_picture', copy this function and replace with a function which checks also for filetype.
Comment #2
dave reidComment #3
dave reidFixing tag
Comment #4
design.er commented@dereine: Unfortunately, this is too difficult for me. As my nick describes I'm a designer. :)
Nevertheless, thank you very much for your help! Maybe one day I'll get it. *optimist*