$name\n"; } function project_specific_prefs_default() { return "Tahiti Sunset\n"; } // given struct, show form for editing // function project_specific_prefs_edit($prefs) { $x = $prefs->color_scheme; $y = " "; row2("Color scheme", $y); } // Return XML version of project-specific prefs // function project_specific_prefs_parse_form() { $color_scheme = $_GET["color_scheme"]; return "$color_scheme\n"; } // show non-editable version of prefs // function project_specific_prefs_show($prefs) { if ($prefs->color_scheme) { $x = $prefs->color_scheme; } else { $x = "None selected"; } row2("Color scheme", $x); } // parse XML, fill in struct // function project_specific_prefs_parse($prefs_xml) { $prefs->color_scheme = parse_element($prefs_xml, ""); return $prefs; }