[support] Alter node (title) field?
Ms. Nancy Wichmann
nan_wich at bellsouth.net
Tue Oct 2 01:42:36 UTC 2012
How about hook_node_view_alter()? I've never tried it, but I'd really think hook_node_view() would be the right place. There are also some field and entity hooks that fire before that.
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
>________________________________
> From: toon severijns
>This must be a simple thing to do but i can't seem to get my head around it:
> * I have got a content type 'publication'
> * A publication can have two possible physical formats: "normal", "electronic"
> * When a publication has physical format "electronic" i'd like to alter my title field in al my view modes (i use display suite) like this "Some Title (electronic)"
>I've been trying theme_preprocess_node function but to no avail.
>I've also tried hook_node_view, but there i have my title field already as markup in an array so i can't just alter the title itsself.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20121001/67900638/attachment.html
More information about the support
mailing list