"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);
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

minnur’s picture

minnur’s picture

Title: Unsubscribe and delete the selected users not working » "Unsubscribe and delete the selected users" option is not working
zengenuity’s picture

Ran into the same problem, and I can confirm that the patch fixes the issue.

ja09’s picture

Thanks 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!!

Mike Dodd’s picture

Thank you, patch works for me too.

Adhitya Rajkumar - Digital Factory’s picture

I can confirm that the change from user_delete(array(), (int)$uid); to user_delete($uid); fixes the issue.

Chandan Chaudhary’s picture

Status: Active » Needs review