4 * Copyright (c) 2003, The Burgiss Group, LLC
5 * This source code is part of eWiki LiveUser Plugin.
7 * eWiki LiveUser Plugin is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
12 * eWiki LiveUser Plugin is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with Wiki LiveUser Plugin; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 require_once(dirname(__FILE__).'/pref_liveuser.php');
25 * key points to value which will later be used for the public variable; if there
26 * is a default value, point to an array
42 $prefs_default_value = array(
46 $prefs_possible_values = array(
101 // iterate through list of prefs and add them as user preference fields
102 foreach ($prefs as $pref => $public) {
103 liveuser_pref_setField($pref, $public, $prefs_default_value[$pref], $prefs_possible_values[$pref]);
104 echo 'Added field '.$pref."\n";