# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- E:\Docs\Downloads\accountmenu\accountmenu.module
+++ E:\Web\Server-3.5\udrive\www\bahaistuff\bahaistuff\sites\all\modules\contrib\accountmenu\accountmenu.module
@@ -154,30 +154,44 @@
     $item['title'] = t($item['link_title']);
   }
   elseif ($item['link_path'] == 'user/%') {
+
+    // Disable menu altering on the menu customization page - otherwise, if this item is changed at all,
+    // the entire link will be changed permanently.  If a php array whiz could get this into the form alter,
+    // that would be much better than this solution.
+    if (arg(2) == 'menu-customize') {
+      drupal_set_message(t('Customized account links (with usernames) will appear on every page except this one.'), 'error', FALSE);
+      return;
+    }
+
     // I don't do check_plain() here because menu display will do it
     global $user;
 
     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);
-}
