aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/start.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-28 10:36:35 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-28 10:36:35 +0000
commit8fbbdf8785a9640e20bd4b4c59a02fbb3cac8337 (patch)
tree0526f6550687817afc37d6372a122ab37e994abb /mod/profile/start.php
parent37d233139be3e345fc1d33f752c7c9c8cd4f6ff1 (diff)
downloadelgg-8fbbdf8785a9640e20bd4b4c59a02fbb3cac8337.tar.gz
elgg-8fbbdf8785a9640e20bd4b4c59a02fbb3cac8337.tar.bz2
The profile now has fields set in start.php. TODO: make those user editable, once we have the admin panel ...
git-svn-id: https://code.elgg.org/elgg/trunk@543 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/start.php')
-rw-r--r--mod/profile/start.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index baebf802f..03fe0eda1 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -34,6 +34,23 @@
));
}
+ // For now, we'll hard code the profile items as follows:
+ // TODO make this user configurable
+ $CONFIG->profile = array(
+
+ // Language short codes must be of the form "profile:key"
+ // where key is the array key below
+ 'description' => 'longtext',
+ 'location' => 'tags',
+ 'interests' => 'tags',
+ 'skills' => 'tags',
+ 'contactemail' => 'email',
+ 'phone' => 'text',
+ 'mobile' => 'text',
+ 'website' => 'url',
+
+ );
+
// Register a page handler, so we can have nice URLs
register_page_handler('profile','profile_page_handler');