基本上,我想将名字和姓氏放到$ node-> field_par_contact_name中
但这给了我警告。(见下文)
function partnership_node_presave($ node){
if($ node-> type =='伙伴关系'){
$ 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
//隐藏变量
$ node-> field_par_contact_name ['und'] [0] ['value'] = $ first_name。''。$ surname;
//保存后警告:array_flip():只能翻转STRING和INTEGER值!在DrupalDefaultEntityController-> load()中(... / drupal-7.23 / includes / entity.inc的第173行
}
}
已更新,请参见图片:

您是否以编程方式提交表格?我的意思是您在使用hook_form_alter吗?然后在您的代码中某处添加drupal_form_submit?
—
严酷的