aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/start.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-27 20:37:17 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-27 20:37:17 +0000
commit0ffda3e1b6c4bddee2ec45ea0bce793844b02bf6 (patch)
tree36b999e8558ebc6ae1f882de7684f7ac5d36bd79 /mod/profile/start.php
parent4ec370d484881acd99e8b7c3ae5ecda954f8ee99 (diff)
downloadelgg-0ffda3e1b6c4bddee2ec45ea0bce793844b02bf6.tar.gz
elgg-0ffda3e1b6c4bddee2ec45ea0bce793844b02bf6.tar.bz2
more clean up of the basic profile plugin - reorged views and removed a lot of cruft
git-svn-id: http://code.elgg.org/elgg/trunk@7726 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/start.php')
-rw-r--r--mod/profile/start.php35
1 files changed, 3 insertions, 32 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php
index 017f91378..49f310882 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -8,8 +8,7 @@
elgg_register_event_handler('init', 'system', 'profile_init', 1);
/**
- * Profile init function; sets up the profile functions
- *
+ * Profile init function
*/
function profile_init() {
global $CONFIG;
@@ -33,12 +32,6 @@ function profile_init() {
elgg_extend_view('html_head/extend', 'profile/metatags');
elgg_extend_view('css/screen', 'profile/css');
-
- // Register actions
- elgg_register_action("profile/addcomment", $CONFIG->pluginspath . "profile/actions/addcomment.php");
- elgg_register_action("profile/deletecomment", $CONFIG->pluginspath . "profile/actions/deletecomment.php");
-
- elgg_register_event_handler('profileupdate', 'all', 'object_notifications');
// allow ECML in parts of the profile
elgg_register_plugin_hook_handler('get_views', 'ecml', 'profile_ecml_views_hook');
@@ -70,14 +63,14 @@ function profile_page_handler($page) {
}
if ($action == 'edit') {
- // use for the core profile edit page
+ // use the core profile edit page
require $CONFIG->path . 'pages/profile/edit.php';
return;
}
// main profile page
$params = array(
- 'box' => elgg_view('profile/box'),
+ 'box' => elgg_view('profile/wrapper'),
'num_columns' => 3,
);
$content = elgg_view_layout('widgets', $params);
@@ -87,28 +80,6 @@ function profile_page_handler($page) {
}
/**
- * Returns the html for a user profile.
- *
- * @param string $username The username of the profile to display
- * @param string $section Which section is currently selected.
- *
- * @todo - This should really use a plugin hook to get the list of plugin tabs
- *
- * @return mixed FALSE or html for the profile.
- */
-function profile_get_user_profile_html($user, $section = 'activity') {
- $body = elgg_view('profile/tab_navigation', array('section' => $section, 'entity' => $user));
- $view_options = array('entity' => $user);
-
- $content = elgg_view("profile/tabs/$section", $view_options);
-
- $body .= elgg_view('profile/content_wrapper', array('content' => $content));
-
- $body .= elgg_view('profile/sidebar', array('section' => $section));
- return $body;
-}
-
-/**
* Profile URL generator for $user->getUrl();
*
* @param ElggUser $user