canEdit() && ($annotation->name == "email_invitation")) { if ($annotation->delete()) { system_message(elgg_echo("group_tools:action:revoke_email_invitation:success")); } else { register_error(elgg_echo("group_tools:action:revoke_email_invitation:error")); } } else { register_error(elgg_echo("groups:cantedit")); } } else { register_error(elgg_echo("groups:notfound:details")); } } else { register_error(elgg_echo("InvalidParameterException:MissingParameter")); } forward(REFERER);