Advanced help can be searched as long as user has permission to "search content"
phpdiva - October 24, 2008 - 00:42
| Project: | Advanced help |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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');
}
#1
Yes, 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.
#2
Was 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
#3
Oh sorry, I should have been more clear! Yes this was committed to the dev version of the module.
#4
Automatically closed -- issue fixed for two weeks with no activity.