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

CommentFileSizeAuthor
usernode.install.patch627 bytesjenlampton
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fago’s picture

Status: Needs review » Fixed

thanks, fixed

Anonymous’s picture

Status: Fixed » Closed (fixed)