Basically, I want to put first name & surname together into $node->field_par_contact_name
But it gives me warning. (See below)
function partnership_node_presave($node) { if($node->type == 'partnership') { $first_name = $node->field_par_contact_first_name['und'][0]['name']; $surname = $node->field_par_contact_surname['und'][0]['name']; // https://drupal.org/project/field_hidden // Hidden variable $node->field_par_contact_name['und'][0]['value'] = $first_name. ' '. $surname; // Warning after save: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 173 of .../drupal-7.23/includes/entity.inc } }
Updated, please see image: