Add ability to have accesskeys in advanced folder tree
[squirrelmail.git] / include / options / accessibility.php
CommitLineData
8949acd6 1<?php
2
3/**
4 * options_accessibility.php
5 *
6 * Displays all options concerning accessibility features in SquirrelMail.
7 *
8 * @copyright &copy; 1999-2007 The SquirrelMail Project Team
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @version $Id$
11 * @package squirrelmail
12 */
13
14/** Define the group constants for this options page. */
fbffe024 15define('SMOPT_GRP_ACCESSKEYS_MENUBAR', 0);
16define('SMOPT_GRP_ACCESSKEYS_MAILBOX', 1);
17define('SMOPT_GRP_ACCESSKEYS_READ_MESSAGE', 2);
18define('SMOPT_GRP_ACCESSKEYS_COMPOSE', 3);
8949acd6 19
20/**
21 * This function builds an array with all the information about
22 * the options available to the user, and returns it. The options
23 * are grouped by the groups in which they are displayed.
24 * For each option, the following information is stored:
25 * - name: the internal (variable) name
26 * - caption: the description of the option in the UI
27 * - type: one of SMOPT_TYPE_*
28 * - refresh: one of SMOPT_REFRESH_*
29 * - size: one of SMOPT_SIZE_*
30 * - save: the name of a function to call when saving this option
31 * @return array all option information
32 */
33function load_optpage_data_accessibility() {
34
35 global $a_to_z;
36 $my_a_to_z = array_merge(array('NONE' => _("Not used")), $a_to_z);
37
38 /* Build a simple array into which we will build options. */
39 $optgrps = array();
40 $optvals = array();
41
42 /******************************************************/
43 /* LOAD EACH GROUP OF OPTIONS INTO THE OPTIONS ARRAY. */
44 /******************************************************/
45
fbffe024 46 /*** Load the Access Key Options for the Menubar into the array ***/
47 $optgrps[SMOPT_GRP_ACCESSKEYS_MENUBAR] = _("Access Keys For Top Menu (All Screens)");
48 $optvals[SMOPT_GRP_ACCESSKEYS_MENUBAR] = array();
49
50 $optvals[SMOPT_GRP_ACCESSKEYS_MENUBAR][] = array(
51 'name' => 'accesskey_menubar_compose',
52 'caption' => _("Compose"),
53 'type' => SMOPT_TYPE_STRLIST,
54 'refresh' => SMOPT_REFRESH_NONE,
55 'posvals' => $my_a_to_z,
56 );
57
58 $optvals[SMOPT_GRP_ACCESSKEYS_MENUBAR][] = array(
59 'name' => 'accesskey_menubar_addresses',
60 'caption' => _("Addresses"),
61 'type' => SMOPT_TYPE_STRLIST,
62 'refresh' => SMOPT_REFRESH_NONE,
63 'posvals' => $my_a_to_z,
64 );
65
66 $optvals[SMOPT_GRP_ACCESSKEYS_MENUBAR][] = array(
67 'name' => 'accesskey_menubar_folders',
68 'caption' => _("Folders"),
69 'type' => SMOPT_TYPE_STRLIST,
70 'refresh' => SMOPT_REFRESH_NONE,
71 'posvals' => $my_a_to_z,
72 );
73
74 $optvals[SMOPT_GRP_ACCESSKEYS_MENUBAR][] = array(
75 'name' => 'accesskey_menubar_options',
76 'caption' => _("Options"),
77 'type' => SMOPT_TYPE_STRLIST,
78 'refresh' => SMOPT_REFRESH_NONE,
79 'posvals' => $my_a_to_z,
80 );
81
82 $optvals[SMOPT_GRP_ACCESSKEYS_MENUBAR][] = array(
83 'name' => 'accesskey_menubar_search',
84 'caption' => _("Search"),
85 'type' => SMOPT_TYPE_STRLIST,
86 'refresh' => SMOPT_REFRESH_NONE,
87 'posvals' => $my_a_to_z,
88 );
89
90 $optvals[SMOPT_GRP_ACCESSKEYS_MENUBAR][] = array(
91 'name' => 'accesskey_menubar_help',
92 'caption' => _("Help"),
93 'type' => SMOPT_TYPE_STRLIST,
94 'refresh' => SMOPT_REFRESH_NONE,
95 'posvals' => $my_a_to_z,
96 );
97
98 $optvals[SMOPT_GRP_ACCESSKEYS_MENUBAR][] = array(
99 'name' => 'accesskey_menubar_signout',
100 'caption' => _("Sign Out"),
101 'type' => SMOPT_TYPE_STRLIST,
102 'refresh' => SMOPT_REFRESH_NONE,
103 'posvals' => $my_a_to_z,
104 );
105
106
107 /*** Load the Access Key Options for the Mailbox page into the array ***/
108 $optgrps[SMOPT_GRP_ACCESSKEYS_MAILBOX] = _("Access Keys For Message List Screen");
109 $optvals[SMOPT_GRP_ACCESSKEYS_MAILBOX] = array();
110
111//FIXME -- TODO...
112// $optvals[SMOPT_GRP_ACCESSKEYS_MAILBOX][] = array(
113// 'name' => 'accesskey_mailbox_XXXXXXXXXXXXXXXXXXXXXXX',
114// 'caption' => _("XXXXXXXXXXXXXXX"),
115// 'type' => SMOPT_TYPE_STRLIST,
116// 'refresh' => SMOPT_REFRESH_NONE,
117// 'posvals' => $my_a_to_z,
118// );
119
120
8949acd6 121 /*** Load the Access Key Options for the Read Message page into the array ***/
122 $optgrps[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE] = _("Access Keys For Read Message Screen");
123 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE] = array();
124
125 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
126 'name' => 'accesskey_read_msg_reply',
127 'caption' => _("Reply"),
128 'type' => SMOPT_TYPE_STRLIST,
129 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 130 'posvals' => $my_a_to_z,
131 );
132
133 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
134 'name' => 'accesskey_read_msg_reply_all',
135 'caption' => _("Reply All"),
136 'type' => SMOPT_TYPE_STRLIST,
137 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 138 'posvals' => $my_a_to_z,
139 );
140
141 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
142 'name' => 'accesskey_read_msg_forward',
143 'caption' => _("Forward"),
144 'type' => SMOPT_TYPE_STRLIST,
145 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 146 'posvals' => $my_a_to_z,
147 );
148
149 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
150 'name' => 'accesskey_read_msg_as_attach',
151 'caption' => _("As Attachment"),
152 'type' => SMOPT_TYPE_STRLIST,
153 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 154 'posvals' => $my_a_to_z,
155 );
156
157 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
158 'name' => 'accesskey_read_msg_delete',
159 'caption' => _("Delete"),
160 'type' => SMOPT_TYPE_STRLIST,
161 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 162 'posvals' => $my_a_to_z,
163 );
164
165 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
166 'name' => 'accesskey_read_msg_bypass_trash',
167 'caption' => _("Bypass Trash"),
168 'type' => SMOPT_TYPE_STRLIST,
169 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 170 'posvals' => $my_a_to_z,
171 );
172
173 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
174 'name' => 'accesskey_read_msg_move_to',
175 'caption' => _("Move To"),
176 'type' => SMOPT_TYPE_STRLIST,
177 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 178 'posvals' => $my_a_to_z,
179 );
180
181 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
182 'name' => 'accesskey_read_msg_move',
183 'caption' => _("Move"),
184 'type' => SMOPT_TYPE_STRLIST,
185 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 186 'posvals' => $my_a_to_z,
187 );
188
189 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
190 'name' => 'accesskey_read_msg_copy',
191 'caption' => _("Copy"),
192 'type' => SMOPT_TYPE_STRLIST,
193 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 194 'posvals' => $my_a_to_z,
195 );
196
197
198 /*** Load the Access Key Options for the Compose page into the array ***/
199 $optgrps[SMOPT_GRP_ACCESSKEYS_COMPOSE] = _("Access Keys For Compose Screen");
200 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE] = array();
201
202 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
5840b9f0 203 'name' => 'accesskey_compose_identity',
204 'caption' => _("From"),
205 'type' => SMOPT_TYPE_STRLIST,
206 'refresh' => SMOPT_REFRESH_NONE,
207 'posvals' => $my_a_to_z,
208 );
209
210 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
8949acd6 211 'name' => 'accesskey_compose_to',
212 'caption' => _("To"),
213 'type' => SMOPT_TYPE_STRLIST,
214 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 215 'posvals' => $my_a_to_z,
216 );
217
218 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
219 'name' => 'accesskey_compose_cc',
220 'caption' => _("Cc"),
221 'type' => SMOPT_TYPE_STRLIST,
222 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 223 'posvals' => $my_a_to_z,
224 );
225
226 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
227 'name' => 'accesskey_compose_bcc',
228 'caption' => _("Bcc"),
229 'type' => SMOPT_TYPE_STRLIST,
230 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 231 'posvals' => $my_a_to_z,
232 );
233
234 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
235 'name' => 'accesskey_compose_subject',
236 'caption' => _("Subject"),
237 'type' => SMOPT_TYPE_STRLIST,
238 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 239 'posvals' => $my_a_to_z,
240 );
241
242 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
243 'name' => 'accesskey_compose_priority',
244 'caption' => _("Priority"),
245 'type' => SMOPT_TYPE_STRLIST,
246 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 247 'posvals' => $my_a_to_z,
248 );
249
250 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
251 'name' => 'accesskey_compose_on_read',
252 'caption' => _("On Read"),
253 'type' => SMOPT_TYPE_STRLIST,
254 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 255 'posvals' => $my_a_to_z,
256 );
257
258 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
259 'name' => 'accesskey_compose_on_delivery',
260 'caption' => _("On Delivery"),
261 'type' => SMOPT_TYPE_STRLIST,
262 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 263 'posvals' => $my_a_to_z,
264 );
265
266 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
267 'name' => 'accesskey_compose_signature',
268 'caption' => _("Signature"),
269 'type' => SMOPT_TYPE_STRLIST,
270 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 271 'posvals' => $my_a_to_z,
272 );
273
274 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
275 'name' => 'accesskey_compose_addresses',
276 'caption' => _("Addresses"),
277 'type' => SMOPT_TYPE_STRLIST,
278 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 279 'posvals' => $my_a_to_z,
280 );
281
282 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
283 'name' => 'accesskey_compose_save_draft',
284 'caption' => _("Save Draft"),
285 'type' => SMOPT_TYPE_STRLIST,
286 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 287 'posvals' => $my_a_to_z,
288 );
289
290 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
291 'name' => 'accesskey_compose_send',
292 'caption' => _("Send"),
293 'type' => SMOPT_TYPE_STRLIST,
294 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 295 'posvals' => $my_a_to_z,
296 );
297
298 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
299 'name' => 'accesskey_compose_body',
300 'caption' => _("Body"),
301 'type' => SMOPT_TYPE_STRLIST,
302 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 303 'posvals' => $my_a_to_z,
304 );
305
306 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
307 'name' => 'accesskey_compose_attach_browse',
308 'caption' => _("Browse"),
309 'type' => SMOPT_TYPE_STRLIST,
310 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 311 'posvals' => $my_a_to_z,
312 );
313
314 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
315 'name' => 'accesskey_compose_attach',
316 'caption' => _("Attach"),
317 'type' => SMOPT_TYPE_STRLIST,
318 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 319 'posvals' => $my_a_to_z,
320 );
321
322 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
323 'name' => 'accesskey_compose_delete_attach',
324 'caption' => _("Delete Selected Attachments"),
325 'type' => SMOPT_TYPE_STRLIST,
326 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 327 'posvals' => $my_a_to_z,
328 );
329
330
331 /* Assemble all this together and return it as our result. */
332 $result = array(
333 'grps' => $optgrps,
334 'vals' => $optvals
335 );
336 return ($result);
337}
338
339/******************************************************************/
340/** Define any specialized save functions for this option page. ***/
341/** ***/
342/** You must add every function that is set in save parameter ***/
343/******************************************************************/
344