function user_get_registered_attributes

7.x user.module user_get_registered_attributes()
6.x user.module user_get_registered_attributes()

invokes the right hook to return back all the "registered" attributes from other modules.

11 calls to user_get_registered_attributes()
user.module in modules/user/user.module
user.student.inc in modules/user/user.student.inc
Keep track of functions dealing specifically with student user management
user_alter_student_profile_items in modules/user/user.module
Implements hook_alter_student_profile_items
user_edit_attribute_form in modules/user/user.module
The form which lets us actually edit this user's attribute (ex: Visa Status) Meant to be very similar to:
user_edit_student_user_form in modules/user/user.student.inc
Let the user edit a studentuser's information.

... See full list

File

modules/user/user.module, line 699

Code

function user_get_registered_attributes() {

  $rtn = array();

  // Save effort by saving to a globals cache.
  if (isset($GLOBALS ['user_registered_attributes_cache'])) {
    return $GLOBALS ['user_registered_attributes_cache'];
  }

  $modules = modules_implement_hook("user_register_user_attributes");
  foreach ($modules as $module) {
    $types = call_user_func($module . '_user_register_user_attributes');
    $rtn += $types;
  }

  $GLOBALS ['user_registered_attributes_cache'] = $rtn;

  return $rtn;


}