| 5 user.module | _user_forms(&$edit, $account, $category, $hook = 'form') |
| 6 user.module | _user_forms(&$edit, $account, $category, $hook = 'form') |
Retrieve a list of all form elements for the specified category.
2 calls to _user_forms()
File
- modules/
user/ user.module, line 2530 - Enables the user registration and login system.
Code
function _user_forms(&$edit, $account, $category, $hook = 'form') {
$groups = array();
foreach (module_list() as $module) {
$function = $module . '_user';
// $edit and $account need to be passed by reference.
if (function_exists($function) && ($data = $function($hook, $edit, $account, $category))) {
$groups = array_merge_recursive($data, $groups);
}
}
uasort($groups, '_user_sort');
return empty($groups) ? FALSE : $groups;
}
Login or register to post comments