Closed (fixed)
Project:
Usernode
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Oct 2007 at 18:53 UTC
Updated:
26 Oct 2007 at 16:54 UTC
While trying to uninstall the usernode module, I ran into an error: "call to undefined function usernode_delete_node()". That function is defined in usernode.module, but after you un-check the box on the modules page, that file isn't included anymore. I added an include once to fix this problem.
This loop:
while ($user = db_fetch_object($result)) {
usernode_delete_node($user);
}
now looks like this...
while ($user = db_fetch_object($result)) {
// after the module is uninstalled via admin > modules, the usernode.module file is nolonger
// included, so calling usdenode_delete_node() generates an "undefined function" error
// I aded the include_once so the "uninstall" feature would work
include_once('usernode.module');
usernode_delete_node($user);
}
Patch also attached, please review.
Jen
| Comment | File | Size | Author |
|---|---|---|---|
| usernode.install.patch | 627 bytes | jenlampton |
Comments
Comment #1
fagothanks, fixed
Comment #2
(not verified) commented