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.
This function gives an error when called from a Migrate rollback (and possibly elsewhere; I haven't checked) because the $edit variable does not exist.
/**
* Implements hook_user_delete()
*/
function user_mailman_register_user_delete($account) {
_user_mailman_register_subscribe($account, $edit, TRUE);
db_delete('mailman_users')
->condition('uid', $account->uid)
->execute();
}
Editing the second line to read:
_user_mailman_register_subscribe($account, $edit = NULL, TRUE);
prevents the error.
Comments
Comment #1
rjlang CreditAttribution: rjlang commentedThanks for fix! (Sorry for delay). Change has been rolled into 7.x-3.x-dev.