[support] Alter node (title) field?

Eric Chen eric.chenchao at gmail.com
Tue Oct 2 02:40:00 UTC 2012


Have you tried hook_node_load()?

Cheers, Eric

On Tue, Oct 2, 2012 at 11:42 AM, Ms. Nancy Wichmann
<nan_wich at bellsouth.net> wrote:
> 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.
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]


More information about the support mailing list