load(); if ($profile && $profile->getType() == 'profile' && is_admin_logged_in()) { $user = $profile->getOwnerEntity(); if (!$user->deleteUser()) { $Dippler->add_system_message(sprintf(_("User account for %s could not be removed."), $user->getFullname()), 'error'); forward("profile/view/{$user->getId()}/edit"); } $Dippler->add_system_message(sprintf(_("User %s removed."), $user->getFullname())); forward("administrate/user"); } forward("");