Does not work with Avatar Selection module

Carlos Miranda Levy - October 23, 2007 - 01:41
Project:User Picture Resizer
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Enabling this module, disables the avatar selection module.
It would be nice to see them both work together.
Avatar Selection does not disable the user picture upload format, but adds a list of avatars to select from as an alternative below it.

http://drupal.org/project/avatar_selection

#1

stella - November 7, 2007 - 16:09

A copy of this issue was also created, #185715 which I marked as a duplicate of this one. Below is my follow-up comment to it.

I've tested this out and the two modules don't work together. I believe it's because of the following function in the User Picture Resizer module:

function resizer_form_alter($form_id, &$form) {
global $form_values;

if($form_id == 'user_edit' && arg(3) == NULL) {
   // only fire this if it's user/<uid>/edit, not any other category
   unset($form['picture']);
}
}

The avatar selection module needs to have the array $form['picture'] in order to work but this module un-sets it entirely. As maintainer of the avatar selection module, I don't believe there is anything I can do to help this.

Cheers,
Stella

 
 

Drupal is a registered trademark of Dries Buytaert.