function _user_forms in Drupal 6
Same name and namespace in other branches
- 4 modules/user.module \_user_forms()
- 5 modules/user/user.module \_user_forms()
Retrieve a list of all form elements for the specified category.
2 calls to _user_forms()
- user_profile_form in modules/
user/ user.pages.inc - Form builder; edit a user account or one of their profile categories.
- user_register in modules/
user/ user.module - Form builder; The user registration form.
File
- modules/
user/ user.module, line 2570 - 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;
}