Closed (fixed)
Project:
Classroom
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
15 Nov 2010 at 19:46 UTC
Updated:
28 Jun 2011 at 19:31 UTC
Jump to comment: Most recent file
Added token support for: Course, Assignment, and Response node types.
Also added functionality for:
- multiple tokens regarding dates in each of the aforementioned node types (i.e. YY|YYYY|month|mon|mm|m|day|ddd|d|date|value, etc...)
- plaintext token values for boolean fields (e.g. Classroom: Open End Inscription would display "Open Enrollment" or "No" depending on its value, etc...).
I have found this especially useful for adjusting node paths used for my courses via PathAuto (makes aliasing them a BREEZE).
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | classroom-6.x.-1.x-add-token-support-972610-7.patch | 6.71 KB | wjaspers |
| #6 | classroom-6.x.-1.x-add-token-support-972610-4.patch | 16.8 KB | wjaspers |
| #3 | classroom-6.x.-1.x-add-token-support-972610.patch | 13.3 KB | wjaspers |
| #1 | classroom-token-support-972610.patch | 10.64 KB | wjaspers |
Comments
Comment #1
wjaspers commentedNow to add the file...
Comment #2
wjaspers commentedIn response to http://drupal.org/node/972390#comment-3713976 I think I need to make a few adjustments and submit a better patch.
Comment #3
wjaspers commentedHere's a better patch, which takes advantage of
token_get_date_token_info()andtoken_get_date_token_values()instead of hardcoding our own solution.Comment #4
dave reidYou *must* pass on $type to the token_values implementations.
Use
if ($type == 'all' || $type == 'node') {and please pass along the $type parameter. See examples in token module.Powered by Dreditor.
Comment #5
wjaspers commentedHa; I didn't realize what I'd goofed up. Now I see it. Ill post a fix first thing tomorrow. Thanks much for the feedback.
Comment #6
wjaspers commentedThird times the charm?
EDIT: I see something that got in there regarding a dev site I was working on.
Comment #7
wjaspers commentedComment #8
imobachgs commentedCommited.
Thanks!
Comment #9
wjaspers commentedShould have been set to fixed.
Cleaning up my queue.