Closed (fixed)
Project:
Activity
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
14 May 2009 at 16:17 UTC
Updated:
29 May 2009 at 03:50 UTC
How to alter message for example for story node type?
How to detect node type with $type variable? The hook_activity_messages_alter is not documented and DEVELOPERS.txt is outdated (hook_activity_records_alter changed to hook_activity_record_alter and parameters changed too).
Comments
Comment #1
sirkitree commentedI will update the documentation with the changes in hook_activity_records_alter() and properly document hook_activity_messages_alter() - however, what you are trying to do (detect a node type) within hook_activity_messages_alter() will not be possible currently.
That being said - we've anticipated this scenario and have been thinking for a few days on how to handle it. We're basically going to have to extend the API to handle multiple object types, but have no solid plan outlined just yet. Scott has a couple of ideas on how to go about it that maybe he can outline here for us.
I'll update back when I have the documentation changes committed.
Comment #2
sirkitree commentedupdated. http://drupal.org/cvs?commit=211724
Comment #3
mrjavum commentedsirkitree
thanks!
Comment #4
mrjavum commentedThe previous variant (hook_activity_records_alter) was more usable for alter messages throw tokens... (IMHO)