function 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.

9 calls to user_get_registered_attributes()
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.
user_edit_user_advisees_form in modules/user/user.module
This form lets us populate the advisor_student table
user_edit_user_attributes_form in modules/user/user.module

... See full list

File

modules/user/user.module, line 689

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;


}