我不能把这颗Dorupal html阵列在改变无线电选择时烧毁可见的财产。 我已在实地工作,但不能确定这样做会有任何改变。
是否有任何人知道为什么不开枪?
function services_formation_founders($form, &$form_state) {
$form = array();
$form[ #tree ] = TRUE;
$form[ description ] = array(
#type => item ,
#title => t( Founders form ),
);
$form[ founder ][ add_officer ] = array(
#type => fieldset ,
#title => t( Add Founder ),
#collapsible => TRUE,
#collapsed => FALSE,
#states => array(
visible => array(TRUE,
),
),
);
$form[ founder ][ add_officer ][ founder_type ] = array(
#type => radios ,
#options => array(
individual => t( Individual ),
corporate => t( Corporation ),
),
#default_value => individual ,
#title => t( What type of Founder? )
);
if (empty($form_state[ num_names ])) {
$form_state[ num_names ] = 1;
}
$form[ founder ][ add_officer ][ individual ] = array(
#type => textfield ,
#title => t( Individual ),
#states => array(
visible => array(
:input[name="founder_type" => array( value => "individual"),
),
),
);
$form[ founder ][ add_officer ][ corporation ] = array(
#type => textfield ,
#title => t( Corporation ),
#states => array(
visible => array(
:input[name="founder_type" => array( value => "corporate"),
),
),
);
return $form;
}