You are here

function _user_revision_get_custom_fields in User Revision 7.2

Same name and namespace in other branches
  1. 7 user_revision.module \_user_revision_get_custom_fields()

Adds a hook_user_revision_custom_fields() function.

1 call to _user_revision_get_custom_fields()
user_revision_user_presave in ./user_revision.module
Implements hook_user_presave().

File

./user_revision.module, line 511
Enables user revision.

Code

function _user_revision_get_custom_fields($edit = NULL) {
  $custom_fields = array();
  foreach (module_implements('user_revision_custom_fields') as $module) {
    $invoke = module_invoke($module, 'user_revision_custom_fields', $edit);
    $custom_fields = array_merge($invoke, $custom_fields);
  }
  return $custom_fields;
}