function _user_forms in Drupal 4
Same name and namespace in other branches
- 5 modules/user/user.module \_user_forms()
- 6 modules/user/user.module \_user_forms()
Retrieve a list of all form elements for the specified category.
2 calls to _user_forms()
- user_edit in modules/
user.module - user_register in modules/
user.module
File
- modules/
user.module, line 2137 - Enables the user registration and login system.
Code
function _user_forms(&$edit, $account, $category, $hook = 'form') {
$groups = array();
foreach (module_list() as $module) {
if ($data = module_invoke($module, 'user', $hook, $edit, $account, $category)) {
$groups = array_merge_recursive($data, $groups);
}
}
uasort($groups, '_user_sort');
return empty($groups) ? FALSE : $groups;
}