Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Avatar Selection should integrate nicely with Avatar Approval which would be a nice complement, but they don't play nicely - Avatar Approval sends all Avatar Selection's pictures into approval queue.
Patch is coming.
Comment | File | Size | Author |
---|---|---|---|
#2 | avatar_selection-1906488-2.patch | 4.56 KB | iva2k |
#1 | avatar_selection-1906488-1.patch | 4.53 KB | iva2k |
Comments
Comment #1
iva2k CreditAttribution: iva2k commentedI've added implementation of hook_avatarapproval_competency_check() that let's Avatar Approval module know that it is Avatar Selection's picture to make complete integration with Avatar Approval. (see patch #7 in #1188120: Fixing many bugs in D7 port)
Also few one-liner fixes to issues #1883638: Avatar Selection unexpectedly shows on profile2 page #1883648: .info file should contain "configure = ..." #1883646: If user picture is not enabled upon install, the link in the message is wrong.
Also I changed
$form['#validate'][] = ...
toarray_unshift($form['#validate'], 'avatar_selection_validate_user_avatar');
as having data manipulation in validate hook should precede any other modules which may depend on this manipulation. For instance, I used avatar selection to quickly debug avatar approval module and this change was instrumental to make it all work.
Please review and commit.
Comment #2
iva2k CreditAttribution: iva2k commentedChange to the hook_avatarapproval_competency_check() API. Ignore patch #1.