1
这里是我的hook_elements:drupal'#process'回调似乎不起作用!
function test_elemets() {
return array(
'test_field' => array(
'#input' => TRUE,
'#process' => array('test_field_process'),
)
);
}
和工艺回调:
function test_field_process($element, $edit, &$form_state, $complete_form)
$element = array();
return $element;
}
,你在过程中的作用看,我用$元素=阵列(),看看有什么happens.But形式表示为为什么?
如果你返回一个空数组,那么你会发生什么? – 2010-10-15 10:47:57