Posted by Dave Reid on October 15, 2010 at 8:45pm
5 followers
| Project: | Page Title |
| Version: | 7.x-2.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Dave Reid |
| Status: | needs work |
| Issue tags: | token |
Issue Summary
Working on a patch and summary to help improve and simplify the token integration in Page Titles for D7 by re-adding the dependency on token module...
Comments
#1
Patch summary:
So sorry that it's not quite that easy to drop the dependency on Token module for D7, but we do want to help provide everyone with as much re-usable code that we can hopefully get into core for D8.
#2
Adding tag...
#3
Commited to DRUPAL-7--2. Thank you so much for the patch. MUCH appreciated!
#4
Some small follow-ups that somehow didn't make it into the original patch:
1. Support using vocabulary tokens on the forum container page title
2. Token replacement should request the unsanitized tokens since it applies filter_xss() later.
#5
Is there a coding preference amongst the community for comma's at the end of in-line arrays? http://drupal.org/coding-standards#array doesn't seem to state either way (apart from the example not having one)
Eg
$some_array = array('hello', 'world', 'foo' => 'bar');vs
$some_array = array('hello', 'world', 'foo' => 'bar',);Sorry if it seems picky - but I just noticed a few lines of that patch which only seem to change the trailing comma.
#6
If your array is on one line and less than 80 characters long, it's the code standard to not use a trailing comma. But if you have a long array with each element on a separate line, you're supposed to use a trailing comma. It's detailed exactly on http://drupal.org/coding-standards#array
#7
Re-rolled with some additional fixes:
#8
More of the same.
#9
Ah I just applied the patch from #7 and refreshed here to reply... What changed between #7 and #8?
#10
Interdiff is your friend.
#11
Oooo Interdiff! Handy!
#12
Committed - thanks for the work - much appreciated!
#13
Automatically closed -- issue fixed for 2 weeks with no activity.
#14
Dear maintainer: Could you please add a short info concerning Drupal 7 and module dependency to the project page so that not every ordinary user must snoop through the issues queue, in order to get that basic info. Thanks! Something like:
#15
@porg
You either need to re-open this issue (change its status to "needs work") or preferably, open a new issue and then add a comment here that links to it.
#16