Closed (fixed)
Project:
Commerce Wishlist v3
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Reporter:
Created:
8 May 2015 at 12:27 UTC
Updated:
25 May 2015 at 20:34 UTC
Jump to comment: Most recent
As the comment above theme_commerce_wishlist_user_wishlist_page_title() already states, you might want to use the user's full name. The Drupal format_username() function is designed to show a formatted username and allows hook_username_alter (used by modules like Realname) to output a name other then the user's name property.
Proposition:
function theme_commerce_wishlist_user_wishlist_page_title(&$variables) {
global $user;
if ($user->uid == $variables['account']->uid) {
return t('My wishlist');
}
return t("@name's wishlist", array('@name' => format_username($variables['account'])));
}
Comments
Comment #1
neograph734Comment #2
aramboyajyan commentedGood solution! Thanks again for reporting. Will commit this and #2485487: Wrong redirect from message after adding product to wishlist over the weekend.
Comment #3
neograph734You still did most of thew work ;)
I'll run trough the code and give feedback where I see fit, for bigger issue's I'll build you a patch. Expect some more issues the upcoming days ;)
Comment #5
aramboyajyan commentedCommitted!