Index: trunk/extensions/UsabilityInitiative/DontSwitchMeOver/DontSwitchMeOver.i18n.php |
— | — | @@ -13,6 +13,7 @@ |
14 | 14 | */ |
15 | 15 | $messages['en'] = array( |
16 | 16 | 'dontswitchmeover-desc' => 'Preference for users to specify whether they want to preserve their skin setting when the default skin is changed.', |
| 17 | + 'dontswitchmeover-pref' => 'Do not allow my skin to be changed when the default skin changes', |
17 | 18 | ); |
18 | 19 | |
19 | 20 | /** Message documentation |
— | — | @@ -20,4 +21,5 @@ |
21 | 22 | */ |
22 | 23 | $messages['qqq'] = array( |
23 | 24 | 'dontswitchmeover-desc' => '{{desc}}', |
| 25 | + 'dontswitchmeover-pref' => 'The wording of this message may change', |
24 | 26 | ); |
Index: trunk/extensions/UsabilityInitiative/DontSwitchMeOver/DontSwitchMeOver.hooks.php |
— | — | @@ -8,10 +8,12 @@ |
9 | 9 | */ |
10 | 10 | |
11 | 11 | class DontSwitchMeOverHooks { |
12 | | - |
13 | 12 | public static function addPreferences( $user, &$defaultPreferences ) { |
14 | | - // TODO |
| 13 | + $defaultPreferences['dontswitchmeover'] = array( |
| 14 | + 'type' => 'toggle', |
| 15 | + 'label-message' => 'dontswitchmeover-pref', |
| 16 | + 'section' => 'rendering/skin', // May move after discussion |
| 17 | + ); |
15 | 18 | return true; |
16 | 19 | } |
17 | | - |
18 | | -} |
\ No newline at end of file |
| 20 | +} |