Closed (fixed)
Project:
Activity
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Apr 2009 at 22:20 UTC
Updated:
28 Apr 2009 at 19:26 UTC
in activity settings instead of [node-type] only.
cheers, Ronald
Comments
Comment #1
jaydub commentedWhat are you wanting to display ultimately? The value of the [node-type] token is actually the 'human-readable' version of the node type returned via theme_activity_node_type. If you want to modify the display of the token you could always override the theme function and return anything you need based off of the node's 'machine-readable' type that is passed to the theme function.
Comment #2
rokrOk, that was not precise enough. In comment activity i couldn't find the human readable node-type of parent node.
Comment #3
jaydub commentedComment #4
jaydub commentedWhat you are looking for is the [parent-node-type] token that is defined in the commentactivity.module.
That token receives the value of the theme_activity_node_type() function mentioned above which you can override if you want to show the human readable node type other than the default.
Comment #5
rokrThanks for pointing me to the right direction. I didn't get it because of 'strtolower' in theming function which let me think it's just the type not the name of the node type. Now it works fine and i just added definite articles to the human readable names (via theming function) which is useful in german.
Thanks again, Ronald
Comment #6
jaydub commentedyeah the strtolower is there because the node type is often going to be displayed in the middle of a sentence (joe updated the story 'foo') and to have the node type be capitalized in that case is probably not the default behaviour you want.