- Patch #17770 by chx: added missing NULL-arguments to _user() hook.
parent
2ba1d5bbcc
commit
84268b3a34
|
@ -1752,7 +1752,7 @@ function _user_categories() {
|
|||
$categories = array();
|
||||
|
||||
foreach (module_list() as $module) {
|
||||
if ($data = module_invoke($module, 'user', 'categories')) {
|
||||
if ($data = module_invoke($module, 'user', 'categories', NULL, NULL)) {
|
||||
$categories = array_merge($data, $categories);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1752,7 +1752,7 @@ function _user_categories() {
|
|||
$categories = array();
|
||||
|
||||
foreach (module_list() as $module) {
|
||||
if ($data = module_invoke($module, 'user', 'categories')) {
|
||||
if ($data = module_invoke($module, 'user', 'categories', NULL, NULL)) {
|
||||
$categories = array_merge($data, $categories);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue