# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: E:\Web\Server-3.5\udrive\www\bahaistuff\bahaistuff\sites\all\modules\contrib\accountmenu
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: accountmenu.module
--- accountmenu.module Base (BASE)
+++ accountmenu.module Locally Modified (Based On LOCAL)
@@ -159,25 +159,30 @@
 
     if (function_exists('realname_get_user')) {
       $account = realname_get_user($user->uid);    // initialize realname
-      $realname = _accountmenu_ucfirst($account->name);
+      $realname = $account->name;
     }
     else {
-    	$name = $realname = _accountmenu_ucfirst($user->name);
+    	$realname = $user->name;
     }
     // potx will complain here, but line 496 of menu.inc is doing the same so
-    $item['title'] = t('View/edit user account.');
-    $item['link_title'] = t($item['link_title'], array('!name' => $name,
+    $item['options']['accountmenu_link_title'] = $item['link_title'];
+    $item['title'] = t($item['link_title'], array('!name' => $user->name,
                                                   '!realname' => $realname));
+    $item['link_title'] = t($item['options']['attributes']['title']);
   }
 }
 
+/**
+ * Implementation of hook_form_alter()
+ */
+function accountmenu_form_alter(&$form, $form_state, $form_id) {
+  if ($form_id == 'menu_edit_item' && $form['menu']['options']['#value']['accountmenu_link_title']) {
+    $form['menu']['description']['#default_value'] = $form['menu']['link_title']['#default_value'];
+    $form['menu']['link_title']['#default_value'] = $form['menu']['options']['#value']['accountmenu_link_title'];
+  }
+}
 
 
 function _accountmenu_is_404() {
   return strpos(drupal_get_headers(), 'HTTP/1.1 404 Not Found') != FALSE;
 }
-
-
-function _accountmenu_ucfirst($string) {
-  return mb_strtoupper(mb_substr($string, 0, 1)) . mb_substr($string, 1);
-}
