#203727 by Arancaytar. More effectively use hook API.
parent
f787328477
commit
ef7cb1efcc
|
@ -885,11 +885,9 @@ function user_set_authmaps($account, $authmaps) {
|
||||||
|
|
||||||
function user_auth_help_links() {
|
function user_auth_help_links() {
|
||||||
$links = array();
|
$links = array();
|
||||||
foreach (module_list() as $module) {
|
foreach (module_implements('auth') as $module) {
|
||||||
if (module_hook($module, 'auth')) {
|
|
||||||
$links[] = l(module_invoke($module, 'info', 'name'), 'user/help', array(), NULL, $module);
|
$links[] = l(module_invoke($module, 'info', 'name'), 'user/help', array(), NULL, $module);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return $links;
|
return $links;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue