$notification->push(sprintf(_("There was a problem adding \"%s\" to the system: %s"), $info['user_name'], $e->getMessage()), 'horde.error');
break;
}
if (isset($info['extra'])) {
try {
$injector->getInstance('Horde_Core_Hooks')->callHook('signup_addextra', 'horde', array($info['user_name'], $info['extra']));
} catch (Horde_Exception $e) {
$notification->push(sprintf(_("Added \"%s\" to the system, but could not add additional signup information: %s."), $info['user_name'], $e->getMessage()), 'horde.warning');
} catch (Horde_Exception_HookNotSet $e) {
}
}
if ($vars->removeQueuedSignup) {
$signup->removeQueuedSignup($info['user_name']);
}
$notification->push(sprintf(_("Successfully added \"%s\" to the system."), $info['user_name']), 'horde.success');
$addForm->unsetVars($vars);
}
}
break;
case 'remove_f':
$f_user_name = $vars->user_name;
$remove_form = true;
break;
case 'remove':
$f_user_name = $vars->user_name;
$vars->remove('user_name');
if ($vars->submit == _("Cancel")) {
break;
}
if (empty($f_user_name)) {
$notification->push(_("You must specify a username to remove."), 'horde.message');