If the "search" module is disabled, private_nodes doesn't work: it use the search_wipe() function provided by the search module.

Please add the search module to the required modules, just add:

dependencies = search

on the .info file of the module.

Thanks a lot! ;-)

Comments

ben_scott’s picture

Sorry about that & thanks for bringing it to my attention.

The private nodes module doesn't really need the search module - it just needs to remove the item from the search index if the node is made private - so it doesn't need to be dependent.

What I've done instead is add a is_function('search_wipe') check prior to calling search_wipe which will get rid of the error.

Changes committed to CVS.

Cheers, b3n

finex’s picture

What happen if the function doesn't exist?

ben_scott’s picture

Status: Reviewed & tested by the community » Fixed

If the function doesn't exist, the search module isn't installed and the search index doesn't need to be updated to hide/reindex the node.

finex’s picture

All right, thanks :-)

Anonymous’s picture

Status: Fixed » Closed (fixed)