aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/profile_lib.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 00:03:59 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 00:03:59 +0000
commit1bd7be96c93688cccfb994c4ff3f5bdc5a320a37 (patch)
treeb7af920a405bda479cec3717f70e1500f9f096cf /mod/profile/profile_lib.php
parent0b5a24d7943c6f8bc275d1160f4060b337a3cf7a (diff)
downloadelgg-1bd7be96c93688cccfb994c4ff3f5bdc5a320a37.tar.gz
elgg-1bd7be96c93688cccfb994c4ff3f5bdc5a320a37.tar.bz2
more cleanup of the profile plugin from the reorganization
git-svn-id: http://code.elgg.org/elgg/trunk@7674 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/profile_lib.php')
-rw-r--r--mod/profile/profile_lib.php58
1 files changed, 0 insertions, 58 deletions
diff --git a/mod/profile/profile_lib.php b/mod/profile/profile_lib.php
deleted file mode 100644
index d80d02cb3..000000000
--- a/mod/profile/profile_lib.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/**
- * Elgg profile index
- *
- * @package ElggProfile
- */
-
-/**
- * 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/profile_navigation', array('section' => $section, 'entity' => $user));
- $view_options = array('entity' => $user);
-
- if ($section == 'commentwall') {
- $comments = $user->getAnnotations('commentwall', 200, 0, 'desc');
- $view_options['comments'] = $comments;
- }
-
- $content = elgg_view("profile/profile_contents/$section", $view_options);
-
- $body .= elgg_view('profile/profile_content', array('content' => $content));
-
- $body .= elgg_view('profile/sidebar', array('section' => $section));
- return $body;
-}
-
-/**
- * Dispatch the html for the edit section
- *
- * @param unknown_type $user
- * @param unknown_type $page
- * @return string
- */
-function profile_get_user_edit_content($user, $page) {
- $section = (isset($page[2])) ? $page[2] : 'details';
-
- switch ($section) {
- case 'icon':
- $content .= elgg_view_title(elgg_echo('profile:edit'));
- $content .= elgg_view("profile/editicon", array('entity' => $user));
- break;
- default:
- case 'details':
- $content = elgg_view_title(elgg_echo('profile:edit'));
- $content .= elgg_view("profile/edit", array('entity' => $user));
- break;
- }
-
- return $content;
-} \ No newline at end of file