_user_forms
- Versions
- 4.6 – 6
_user_forms(&$edit, $account, $category, $hook = 'form')
Retrieve a list of all form elements for the specified category.
Code
modules/user.module, line 1824
<?php
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($data, $groups);
}
}
usort($groups, '_user_sort');
$output = '';
foreach ($groups as $group) {
$output .= form_group($group['title'], $group['data']);
}
return $output;
}
?>Login or register to post comments 