| 1 |
Index: modules/user/user.module
|
| 2 |
===================================================================
|
| 3 |
RCS file: /cvs/drupal/drupal/modules/user/user.module,v
|
| 4 |
retrieving revision 1.892.2.15
|
| 5 |
diff -u -r1.892.2.15 user.module
|
| 6 |
--- modules/user/user.module 10 Aug 2009 11:34:59 -0000 1.892.2.15
|
| 7 |
+++ modules/user/user.module 8 Sep 2009 22:09:55 -0000
|
| 8 |
@@ -1986,6 +1986,15 @@
|
| 9 |
'join' => '',
|
| 10 |
'options' => array(1 => t('active'), 0 => t('blocked')),
|
| 11 |
);
|
| 12 |
+
|
| 13 |
+ // Subuser filter.
|
| 14 |
+ global $user;
|
| 15 |
+ $filters['subuser'] = array(
|
| 16 |
+ 'title' => 'parent',
|
| 17 |
+ 'join' => 'JOIN {user_relationship} subuser ON u.uid = subuser.uid',
|
| 18 |
+ 'where' => 'subuser.parent_id = %d',
|
| 19 |
+ 'options' => array($user->uid => $user->name),
|
| 20 |
+ );
|
| 21 |
return $filters;
|
| 22 |
}
|
| 23 |
|