summaryrefslogtreecommitdiff
path: root/includes/model
diff options
context:
space:
mode:
Diffstat (limited to 'includes/model')
-rw-r--r--includes/model/User_model.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/model/User_model.php b/includes/model/User_model.php
index d051b3e9..e1bb2733 100644
--- a/includes/model/User_model.php
+++ b/includes/model/User_model.php
@@ -5,6 +5,15 @@
*/
/**
+ * Delete a user
+ *
+ * @param int $user_id
+ */
+function User_delete($user_id) {
+ return sql_query("DELETE FROM `User` WHERE `UID`='" . sql_escape($user_id) . "'");
+}
+
+/**
* Update user.
*
* @param User $user