Skip to main content
14 events
when toggle format what by license comment
Aug 22, 2013 at 16:14 vote accept harshal
Aug 22, 2013 at 13:12 comment added Clive For boolean the column name is 'value', for date the potential names are 'value', 'value2', and another one to do with the timezone (can't recall the name off the top of my head)
Aug 22, 2013 at 13:11 comment added harshal Like for field_user the format is field_user['und'][]['target_id'] then what about the rest of them..
Aug 22, 2013 at 13:09 comment added Clive What about them?
Aug 22, 2013 at 13:08 comment added harshal Drupal 7 can u pls let me know about the boolean and date fields ?
Aug 22, 2013 at 13:07 comment added Clive Is this Drupal 6 or 7?
Aug 22, 2013 at 13:01 history edited harshal CC BY-SA 3.0
added 201 characters in body
Aug 22, 2013 at 12:55 answer added pico34 timeline score: 3
Aug 22, 2013 at 12:53 comment added pico34 same :$node->field_time['und'][]['value']. Use devel module and the dpm or dpr function to display how node object is structured. Devel is essential :)
Aug 22, 2013 at 12:51 comment added harshal it works with $node->field_user['und'][]['target_id'] ..and now what about time field?
Aug 22, 2013 at 12:49 comment added pico34 target_id is for an uid reference
Aug 22, 2013 at 12:48 comment added harshal Can I assign user->name to target_id or should I assign it to $user->uid ?
Aug 22, 2013 at 12:46 comment added pico34 Have you tried : $node->field_user['und'][]['target_id']
Aug 22, 2013 at 12:43 history asked harshal CC BY-SA 3.0