Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -618,6 +618,10 @@ |
619 | 619 | $user: user who performed the undeletion |
620 | 620 | $reason: reason |
621 | 621 | |
| 622 | +'GetAutoPromoteGroups': When determining which autopromote groups a user is entitled to be in. |
| 623 | +&$user: user to promote. |
| 624 | +&$promote: groups that will be added. |
| 625 | + |
622 | 626 | 'GetBlockedStatus': after loading blocking status of an user from the database |
623 | 627 | $user: user (object) being checked |
624 | 628 | |
Index: trunk/phase3/includes/Autopromote.php |
— | — | @@ -18,6 +18,9 @@ |
19 | 19 | if( self::recCheckCondition( $cond, $user ) ) |
20 | 20 | $promote[] = $group; |
21 | 21 | } |
| 22 | + |
| 23 | + wfRunHooks( 'GetAutoPromoteGroups', array($user, &$promote) ); |
| 24 | + |
22 | 25 | return $promote; |
23 | 26 | } |
24 | 27 | |