button to remove all votes by user

This commit is contained in:
Shish
2011-03-28 22:31:45 +01:00
parent 1abb96159b
commit 7118e5fe40
2 changed files with 18 additions and 1 deletions

View File

@ -41,6 +41,18 @@ class NumericScoreTheme extends Themelet {
}
return $html;
}
public function get_nuller_html(User $duser) {
global $user;
$html = "
<form action='".make_link("numeric_score/remove_votes_by")."' method='POST'>
".$user->get_auth_html()."
<input type='hidden' name='user_id' value='{$duser->id}'>
<input type='submit' value='Delete all votes by this user'>
</form>
";
return $html;
}
}
?>