Although there is no link on core for this, it is possible to reach it through user/0/delete. Not user if this is right, but it could cause some problems. Other modules might generate links to this (views "delete link" did).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

franz.glauber’s picture

ops, typo there. I meant "Not sure if this is right"

franz’s picture

forgot to change account. subscribing

ergonlogic’s picture

Status: Active » Needs review
FileSize
1.05 KB

This is fixed in 7.x by the addition of a user_cancel_access() function, which I suppose could be backported as user_delete_access() in 6.x.

Not sure if it's kosher to add functions like this to 6.x, but I don't see any other way to do it.

franz’s picture

Looks ok. Doesn't seem like inserting much bloat into D6. Since it's not an API change, it shouldn't be a problem to add functions.

ergonlogic’s picture

Status: Needs review » Reviewed & tested by the community

RTBC, then?

franz’s picture

bumping

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Looks good. I've changed the comment to say "from being deleted" instead of "from being cancelled", since there is no user cancellation in Drupal 6. Committed with that. http://drupalcode.org/project/drupal.git/commitdiff/e5dbe7a9b6aa1634dfb9...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

fenstrat’s picture

Just nothing here, this broke the user_delete module #1425182: Fatal error Cannot redeclare user_delete_access() with Drupal-6.24

Gábor Hojtsy’s picture

Added this to the known issues on http://drupal.org/drupal-7.12

In Drupal 6.24, if you have the contributed user_delete module enabled on your site, the update will fail with a Cannot redeclare user_delete_access() error. An update of user_delete module is being worked on.