diff --git alterprofilepage.info alterprofilepage.info
index 2a29ce2..2667782 100644
--- alterprofilepage.info
+++ alterprofilepage.info
@@ -1,11 +1,6 @@
-; $Id: alterprofilepage.info,v 1.2.2.1 2010/01/09 03:52:40 jerdiggity Exp $
+
 name = Alter profile page
 description = Makes a few changes to the way the user profile page looks.
-core = 6.x
-
-; Information added by drupal.org packaging script on 2010-04-04
-version = "6.x-2.6"
-core = "6.x"
-project = "alterprofilepage"
-datestamp = "1270371004"
-
+core = 7.x
+Package = Other
+project = alterprofilepage
diff --git alterprofilepage.module alterprofilepage.module
index ba5b93f..8729512 100644
--- alterprofilepage.module
+++ alterprofilepage.module
@@ -7,15 +7,18 @@
  */
 
 /**
- * Implementation of hook_profile_alter().
+ * Implementation of hook_user_view().
  */
-function alterprofilepage_profile_alter(&$account) {
+function alterprofilepage_user_view($account, $view_mode, $langcode) {
   $account->content['user_picture']['#weight'] = -21;	// Keep the picture at the top like normal
   $account->content['summary']['#weight'] = -20;		// Keep the summary next to the picture
   $account->content['summary']['#title'] = NULL;		// If not NULL, two titles would show up (see line 46 below)
-  $account->content['summary']['member_for']['#title'] = t('Member since');
-  $account->content['summary']['member_for']['#weight'] = -19;
-  $account->content['summary']['member_for']['#value'] = check_plain(strftime('%B %Y', $account->created));
+  $account->content['summary']['member_for'] = array(
+    '#type' => 'user_profile_item',
+    '#title' => t('Member since'),
+    '#markup' => check_plain(strftime('%B %Y', $account->created)),
+    '#weight' => -19,
+    );
   $hrsnow = time();
   $hrsago = $hrsnow - 300;
   $hrsago1 = $hrsnow - 1500;
@@ -48,8 +51,8 @@ function alterprofilepage_profile_alter(&$account) {
   $account->content['summary']['last_access'] = array(
   '#type' => 'user_profile_item',
   '#title' => t('Last login'),
-  '#value' => $lastlogintime,
+  '#markup' => $lastlogintime,
   '#weight' => -18,
   );
-  drupal_set_title(t('@user\'s profile', array('@user' => $account->name)));
+  drupal_set_title(t("@user's profile", array('@user' => $account->name)), PASS_THROUGH);
 }
