summaryrefslogtreecommitdiff
path: root/modules/user/helpers/group.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-09 01:12:05 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-09 01:27:26 -0700
commit1ee7d24766a3055d4199251f6ce990714b9c3641 (patch)
treea198bb05283f35dc47b6617140ccd1a4531f9f75 /modules/user/helpers/group.php
parent00ee91837faf4807fb17dde3272ca8248a9dcd94 (diff)
Add support for the in filter to get_user_list and get_group_list. Convert the notifications to use user::get_user_list instead of accessing the table directly.
Diffstat (limited to 'modules/user/helpers/group.php')
-rw-r--r--modules/user/helpers/group.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/user/helpers/group.php b/modules/user/helpers/group.php
index 2590c7d1..fbc5157d 100644
--- a/modules/user/helpers/group.php
+++ b/modules/user/helpers/group.php
@@ -82,7 +82,13 @@ class group_Core {
$group = ORM::factory("group");
foreach($filter as $method => $args) {
- $group->$method($args);
+ switch ($method) {
+ case "in":
+ $group->in($args[0], $args[1]);
+ break;
+ default:
+ $group->$method($args);
+ }
}
return $group->find_all();
}