function realname_rebuild_confirm_submit in Real Name 6
Handler for rebuild confirmation
File
- ./
realname.admin.inc, line 465 - 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_confirm_submit($form, &$form_state) {
$batch = array(
'title' => t('Rebuilding realnames'),
'operations' => array(
array(
'_realname_rebuild_realnames',
array(),
),
),
'file' => drupal_get_path('module', 'realname') . '/realname.admin.inc',
'finished' => '_realname_rebuild_batch_finished',
);
batch_set($batch);
}