#203727 by Arancaytar. More effectively use hook API.

5.x
Neil Drumm 2007-12-28 05:38:27 +00:00
parent f787328477
commit ef7cb1efcc
1 changed files with 2 additions and 4 deletions

View File

@ -885,10 +885,8 @@ function user_set_authmaps($account, $authmaps) {
function user_auth_help_links() {
$links = array();
foreach (module_list() as $module) {
if (module_hook($module, 'auth')) {
$links[] = l(module_invoke($module, 'info', 'name'), 'user/help', array(), NULL, $module);
}
foreach (module_implements('auth') as $module) {
$links[] = l(module_invoke($module, 'info', 'name'), 'user/help', array(), NULL, $module);
}
return $links;
}