You are here

function _user_forms in Drupal 5

Same name and namespace in other branches
  1. 4 modules/user.module \_user_forms()
  2. 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/user.module
user_register in modules/user/user.module

File

modules/user/user.module, line 2478
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;
}