function user_restrictions_ui_import_finished in User restrictions 7
Batch finished function.
Parameters
$success:
$results:
$operations:
See also
user_restrictions_ui_import_rule_form_submit()
2 string references to 'user_restrictions_ui_import_finished'
- user_restrictions_ui_import_rule_form_submit in ./
user_restrictions_ui.admin.inc - Form submission function.
- user_restrictions_update_7102 in ./
user_restrictions.install - Imports username and e-mail masks from the {access} table.
File
- ./
user_restrictions_ui.admin.inc, line 303 - Administration pages for the user restrictions module.
Code
function user_restrictions_ui_import_finished($success, $results, $operations) {
if ($success) {
$message = format_plural(count($results), 'One record imported.', '@count records imported.');
$status = 'status';
}
else {
$message = t('Error while importing.');
$status = 'error';
}
drupal_set_message($message, $status);
}