Closed (fixed)
Project:
Private nodes
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2007 at 13:06 UTC
Updated:
27 Aug 2007 at 12:03 UTC
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
Comment #1
ben_scott commentedSorry 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
Comment #2
finex commentedWhat happen if the function doesn't exist?
Comment #3
ben_scott commentedIf 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.
Comment #4
finex commentedAll right, thanks :-)
Comment #5
(not verified) commented