The preferences UI is completely auto-generated
<?php
// Preference groups look like this: $prefGroups['display'] = array( 'column' => _("Other Options"), 'label' => _("Display Options"), 'desc' => _("Change display options."), 'members' => array('sortby', 'sortdir', 'max_msgs', 'num_words', 'nav_expanded'));
// Individual preferences look like this: $_prefs['fullname'] = array('value' => '', 'locked' => false, 'shared' => true, 'type' => 'text', 'desc' => _("Your full name:"));
?>
- Preference types are: text, textarea, select, enum, number, checkbox, link, implicit, and special.
- Implicit preferences do not appear in the UI by themselves; they are set other places.
- Links are not preferences; they just provide a link to somewhere else from the preference UI.
- Special preferences are preferences that need special logic or UI, and they are handled specially by the application.
- A special preference is just something that shows up in the UI; it will not be stored. Implicit preferences should be used for the values that a special preference needs to store.
|