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.
"Unsubscribe and delete the selected users" is not working at all in 7.x-3.6. This is happening because of incorrect usage of user_delete function.
https://api.drupal.org/api/drupal/modules!user!user.module/function/user...
Instead of this:
user_delete(array(), (int)$uid);
It should be this:
user_delete($uid);
Comment | File | Size | Author |
---|---|---|---|
#1 | constant_contact-fix_user_delete-2144027-1.patch | 391 bytes | minnur |
Comments
Comment #1
minnur CreditAttribution: minnur commentedComment #2
minnur CreditAttribution: minnur commentedComment #3
zengenuity CreditAttribution: zengenuity commentedRan into the same problem, and I can confirm that the patch fixes the issue.
Comment #4
ja09 CreditAttribution: ja09 commentedThanks for the patch. Works for me too... However, this seems to bypass the confirmation screen "Are you sure you want to cancel these user accounts?" with options for keeping user data and Mollom reporting. Users just get deleted without warning. Would be nice if the module followed Drupal standards, but it's better than nothing!!
Comment #5
Mike Dodd CreditAttribution: Mike Dodd commentedThank you, patch works for me too.
Comment #6
Adhitya Rajkumar - Digital Factory CreditAttribution: Adhitya Rajkumar - Digital Factory commentedI can confirm that the change from user_delete(array(), (int)$uid); to user_delete($uid); fixes the issue.
Comment #7
Chandan Chaudhary CreditAttribution: Chandan Chaudhary as a volunteer and at Therefore commented