Needs work
Project:
Achievements
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2014 at 22:39 UTC
Updated:
20 Oct 2015 at 17:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhedstromComment #2
jhedstromComment #3
jhedstrom#2 works on master branch, but fails to apply if #1788800: Account->name should be turned to format_username($account) is also applied. This patch is against #1788800: Account->name should be turned to format_username($account).
Comment #4
morbus iffLooks good to me.
Comment #5
mgriffith commentedI may be missing the point of this patch. If so, please re-mark as reviewed and tested.
Applying the patch in #2 results in the page title for user/%/achievements displaying as just the user name (or the real name replacement, if running that module). The Achievements _tab_ is changed to "Achievements for %username".
Without the patch, the page title is "Achievements for %username" and the tab is 'Achievements'. This original implementation makes more sense to me as we are on a subpage of the user's profile which displays with the username as its full title. I want to differentiate the two pages, so when on the achievements tab, the title Achievements for %username makes more sense.
I agree with removing drupal_set_title() and going with the title callback, but I am not certain why that results in change of the final display.