When user selects one avatar from avatar_selection, then there aren't way to change this one for user's gravatar - because in order to change an avatar for gravatar I must check up both checkbox "Delete picture" and "Change my avatar for gravatar..." (gravatar module). But if I select an avatar from avatar_selection, "Delete picture" chekbox disappears...
And I see in the code of avatar_selection.module:
// Don't allow user to delete a selected avatar.
$path = '/avatar_selection/';
if (!empty($form['picture']['current_picture']['#value'])
&& preg_match($path, $form['picture']['current_picture']['#value'])) {
unset($form['picture']['picture_delete']);
}
Why user can not delete the selected avatar?
(When I tried delete above lines from the code, my site has been broked! Well... I do database backup every hour, so I was able to restore my database...)
Comments
Comment #1
stella commentedThe option disappears as we don't want the user to be able to delete the avatar from the avatar selection pool. Perhaps this is more of an issue for the gravatar module?
Comment #2
stella commentedNo follow up in over a year, closing.