diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-03-21 10:28:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-03-21 10:28:10 +0000 |
commit | 93cf70d72e0e4ac8859afa11811da4d3df738460 (patch) | |
tree | e4a0ea7b105794d6e3588ae720434b43a9d66ea4 /database | |
parent | b5c441a926bf71f7fb4b0553f13c49c66cf23ca7 (diff) | |
download | brdo-93cf70d72e0e4ac8859afa11811da4d3df738460.tar.gz brdo-93cf70d72e0e4ac8859afa11811da4d3df738460.tar.bz2 |
- Profile module improvements: added a URL-type field to the profile module.
We can use this for the 'URL of homepage' field on drupal.org. URL fields
are rendered as links and are being validated.
Diffstat (limited to 'database')
-rw-r--r-- | database/updates.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/database/updates.inc b/database/updates.inc index 371606ba3..663bccf61 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -836,7 +836,7 @@ function update_80() { array("MSN messenger ID", "msn", "textfield", NULL, 0), array("Yahoo messenger ID", "yahoo", "textfield", NULL, 0), array("AIM messenger ID", "aim", "textfield", NULL, 0), - array("URL of homepage", "homepage", "textfield", NULL, 1), + array("URL of homepage", "homepage", "url", NULL, 1), array("Biography", "biography", "textarea", NULL, 0), array("Interests", "interests", "textarea", NULL, 0), array("Public key", "publickey", "textarea", NULL, 0) @@ -880,16 +880,16 @@ function update_80() { // Save the update record: user_save($account, $edit); } - + return $ret; } function update_81() { $ret[] = update_sql('ALTER TABLE {profile_fields} ADD page varchar(255) default NULL'); - + $ret[] = update_sql("UPDATE {profile_fields} SET type = 'url' WHERE name = 'homepage'"); return $ret; } - + function update_sql($sql) { $edit = $_POST["edit"]; $result = db_query($sql); |