Not sure if this is a bug on nodefamily or on usernode???
but.. shouldn't deleting a user delete the nodes "attached" to the usernode?
when i delete a user now the usernode gets deleted and the attached nodes remain but are now shown as being owned by anon (since their original owner was just deleted).
i can likely do an external hook_user on delete to clean things up; but not sure why your modules don't do it automatically - is there a reason that perhaps these nodes might want to be left in the system for some applications??
Comments
Comment #1
jpetso commentedNo, this is not intended, those nodes should have been deleted.
Comment #2
fagothis is only implemented for 5.x, in 4.7.x this won't be fixed as it isn't that easy one thinks... Have a look at this nodeprofile issue: http://drupal.org/node/90838
However it's easier if one relies on the usernode module, of course a patch would be welcome!
Comment #3
aclight commentedHere is some code I use on my site to do this. This is part of a separate module I have worked on.
Note the following:
Good luck
AC
Comment #4
fagoif one comes up with a usernode dependent patch for nodeprofile 4.7.x, which also deletes all grandchildren properly, I'd happily commit it. But don't forget to respect module_exist('usernode')..
I won't write that, as I'm concentrating on 5.x now..