$system["description"]=t("Support for configurable user profiles.");
return$system[$field];
}
functionprofile_conf_options(){
global$profile_fields;
if(!$profile_fields){
_profile_init();
}
foreach($profile_fieldsas$key=>$field){
$fields[$key]=$field[1];
}
$output.=form_select(t("Registration time fields"),"profile_register_fields",variable_get("profile_register_fields",array()),$fields,t("The fields users will be able to set at registration time. Any required fields (see below) must appear here too."),"size=\"6\"",1);
$output.=form_select(t("Required fields"),"profile_required_fields",variable_get("profile_required_fields",array()),$fields,t("The fields users that are required to be set."),"size=\"6\"",1);
$output.=form_select(t("Publicly accessible fields"),"profile_public_fields",variable_get("profile_public_fields",array()),$fields,t("The fields users will be able to set and that will be publicly visible."),"size=\"6\"",1);
$output.=form_select(t("Private fields"),"profile_private_fields",variable_get("profile_private_fields",array()),$fields,t("The fields users will be able to set, but which are kept private."),"size=\"6\"",1);
$output.=form_textfield(t("Avatar image path"),"profile_avatar_path",variable_get("profile_avatar_path","misc/avatars/"),30,255,t("Path for avatar directory; it must be writeable and visible from the web."));
$output.=form_textfield(t("Avatar max size"),"profile_avatar_size",variable_get("profile_avatar_size","85x85"),10,10,t("Maximum size for avatars."));
$output.=form_textfield(t("Avatar max filesize"),"profile_avatar_filesize",variable_get("profile_avatar_filesize","30"),10,10,t("Maximum filesize for avatars, in kb."));
return$output;
}
functionprofile_user($type,$edit,&$user){
global$profile_fields;
if(!$profile_fields){
_profile_init();
}
switch($type){
case"register_form":
// first registration form (to add something to just email and nick)
$system["description"]=t("Support for configurable user profiles.");
return$system[$field];
}
functionprofile_conf_options(){
global$profile_fields;
if(!$profile_fields){
_profile_init();
}
foreach($profile_fieldsas$key=>$field){
$fields[$key]=$field[1];
}
$output.=form_select(t("Registration time fields"),"profile_register_fields",variable_get("profile_register_fields",array()),$fields,t("The fields users will be able to set at registration time. Any required fields (see below) must appear here too."),"size=\"6\"",1);
$output.=form_select(t("Required fields"),"profile_required_fields",variable_get("profile_required_fields",array()),$fields,t("The fields users that are required to be set."),"size=\"6\"",1);
$output.=form_select(t("Publicly accessible fields"),"profile_public_fields",variable_get("profile_public_fields",array()),$fields,t("The fields users will be able to set and that will be publicly visible."),"size=\"6\"",1);
$output.=form_select(t("Private fields"),"profile_private_fields",variable_get("profile_private_fields",array()),$fields,t("The fields users will be able to set, but which are kept private."),"size=\"6\"",1);
$output.=form_textfield(t("Avatar image path"),"profile_avatar_path",variable_get("profile_avatar_path","misc/avatars/"),30,255,t("Path for avatar directory; it must be writeable and visible from the web."));
$output.=form_textfield(t("Avatar max size"),"profile_avatar_size",variable_get("profile_avatar_size","85x85"),10,10,t("Maximum size for avatars."));
$output.=form_textfield(t("Avatar max filesize"),"profile_avatar_filesize",variable_get("profile_avatar_filesize","30"),10,10,t("Maximum filesize for avatars, in kb."));
return$output;
}
functionprofile_user($type,$edit,&$user){
global$profile_fields;
if(!$profile_fields){
_profile_init();
}
switch($type){
case"register_form":
// first registration form (to add something to just email and nick)