summaryrefslogtreecommitdiff
path: root/modules/user/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-16 21:15:12 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-16 21:15:12 -0800
commit6a4dda9bdef81bcf79abe5601fd7309e593078f3 (patch)
tree6b6dbe69481ec3f1bbb783b7ce5c843c03090180 /modules/user/helpers
parenta691dcc63cb6403784e061997cc85606a8f953b3 (diff)
Convert Admin_Users_Controller, User_Model and Group_Model to use
model based validation.
Diffstat (limited to 'modules/user/helpers')
-rw-r--r--modules/user/helpers/group.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/modules/user/helpers/group.php b/modules/user/helpers/group.php
index 2ada0ac1..38124b0d 100644
--- a/modules/user/helpers/group.php
+++ b/modules/user/helpers/group.php
@@ -25,23 +25,6 @@
*/
class group_Core {
/**
- * Create a new group.
- *
- * @param string $name
- * @return Group_Definition the group object
- */
- static function create($name) {
- $group = ORM::factory("group")->where("name", "=", $name)->find();
- if ($group->loaded()) {
- throw new Exception("@todo GROUP_ALREADY_EXISTS $name");
- }
-
- $group->name = $name;
- $group->save();
- return $group;
- }
-
- /**
* The group of all possible visitors. This includes the guest user.
*
* @return Group_Definition the group object