下文提到的代碼是不能工作如何接觸形式添加復位按鈕
function yourModuleName_form_alter(&$form, $form_state, $form_id) {
if ((strpos($form_id, 'contact_mail_page') === 0)) {
$form['reset'] = array(
'#value' => '<input class="form-button" type="reset" value=" Reset " />',
'#weight' => 1001,
);
}
}
Drupal的版本? –