
1、koma7モジュール作成
2、koma7.module内容
<?php function koma7_form_contact_site_form_alter(&$form, &$form_state, $form_id) { dpm('koma7_form_contact_site_form_alter'); dpm($form); $form['contact_fields'] = array( '#type' => 'fieldset', '#title' => t('Contact information'), ); $form['contact_fields']['name'] = $form['name']; $form['contact_fields']['mail'] = $form['mail']; $form['message_fields'] = array( '#type' => 'fieldset', '#title' => t('Message'), ); $form['message_fields']['subject'] = $form['subject']; $form['message_fields']['message'] = $form['message']; $form['message_fields']['copy'] = $form['copy']; unset($form['name'], $form['mail'], $form['subject'], $form['message'], $form['copy']); }
Done!
修正前

修正後

0 件のコメント:
コメントを投稿