Closed (fixed)
Project:
Display Suite
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2012 at 13:55 UTC
Updated:
5 Apr 2012 at 12:01 UTC
I have added a text field (field_title_alt) to a node type. If the field_title_alt is edited, I want to replace the value of the default node title with the value of field_title_alt. I have tried implementing preprocess_node, but I cant make it work. Please help, Im sure this is really easy.
Comments
Comment #1
swentel commentedThat field_title_alt won't be in $vars['field_title_alt']; It will be somewhere in $vars['content']['field_title_alt'];
Try using the devel module and use the 'dsm' function inside your php code to inspect the $vars variable, that will give you a nice overview what's available.