Needs review
Project:
Search Restrict
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2011 at 12:54 UTC
Updated:
28 Mar 2012 at 06:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
jonathan_hunt commentedI think the issue is that the .install file sets the module weight lower than node.module. When the search_restrict_form_alter() runs the node module has not yet attached the advanced form, so no search_restrict logic is applied. The attached patch installs this module with a higher weight so that it runs after node.module.
Comment #2
jonathan_hunt commentedI've included the refactoring from https://drupal.org/node/1340740 into a revised patch.
Comment #3
hyperglide commented@jonathan_hunt Thank you -- had forgotten all about this post. Very glad to see your patches.
I am confused over the difference between them. I believe I wan the one in #2 as this includes some other patches from #1340740: _search_restrict_advanced_form() should use _search_restrict_excluded_content_types() function
Correct?