Closed (fixed)
Project:
Advanced Help
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2008 at 00:42 UTC
Updated:
20 Nov 2008 at 17:49 UTC
Sorry if I missed something, but appears that advanced help content can be search through Drupal search interface, as long as user has permission to "seach content".
I was able to fix this by implementing hook_menu_alter() in my own module. Maybe this should be added to the Advanced Help module, unless there's a better way:
/**
* Inplementation of hook_menu_alter().
**/
function MY_MODULE_NAME_menu_alter(&$callbacks) {
// Override access callback for search advanced help.
$callbacks['search/advanced_help/%menu_tail']['access callback'] = 'user_access';
$callbacks['search/advanced_help/%menu_tail']['access arguments'] = array('view advanced help index');
}
Comments
Comment #1
merlinofchaos commentedYes, this fix seems as good as any. Took me a minute to realize that the path was provided by search.module, not advanced help itself, though.
Comment #2
scottrigbyWas some version of this added to the dev release of advanced help? or is this marked fixed because a custom function can handle it?
Thanks in advance for clarification on this :)
Scott
Comment #3
merlinofchaos commentedOh sorry, I should have been more clear! Yes this was committed to the dev version of the module.