You are here

function _realname_rebuild_batch_finished in Real Name 6

1 string reference to '_realname_rebuild_batch_finished'
realname_rebuild_confirm_submit in ./realname.admin.inc
Handler for rebuild confirmation

File

./realname.admin.inc, line 515
The RealName module allows the admin to choose fields from the user profile that will be used to add a "realname" element (method) to a user object. Hook_user is used to automatically add this to any user object that is loaded.

Code

function _realname_rebuild_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message(t('The realnames have been rebuilt.'));
    variable_set('realname_recalculate', FALSE);
    drupal_goto('admin/user/realname');
  }
  else {
    drupal_set_message(t('The realnames have not been properly rebuilt.'), 'error');
  }
}