Index: trunk/phase3/includes/api/ApiQueryUsers.php |
— | — | @@ -220,6 +220,10 @@ |
221 | 221 | return $this->getResult()->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'user' ); |
222 | 222 | } |
223 | 223 | |
| 224 | + /** |
| 225 | + * Gets all the groups that a user is automatically a member of |
| 226 | + * @return array |
| 227 | + */ |
224 | 228 | public static function getAutoGroups( $user ) { |
225 | 229 | $autolist = array(); |
226 | 230 | $autolist[] = "*"; |
— | — | @@ -228,7 +232,7 @@ |
229 | 233 | foreach( Autopromote::getAutopromoteGroups( $user ) as $group ) { |
230 | 234 | $autolist[] = $group; |
231 | 235 | } |
232 | | - |
| 236 | + |
233 | 237 | return $autolist; |
234 | 238 | } |
235 | 239 | |