/**
* Alter the default comment form layout
*/
public function action_form_comment($form){
//Add some custom template.
//These files are customized and placed in theme dir.
$this->add_template('formcontrol_text', Site::get_dir( 'theme' ).'/custom_formcontrol_text.php', true);
$this->add_template('formcontrol_textarea', Site::get_dir( 'theme' ).'/custom_formcontrol_textarea.php', true);
$this->add_template('formcontrol_submit', Site::get_dir( 'theme' ).'/custom_formcontrol_submit.php', true);
//Now do some hacking to the form.
$form->commenter->caption="Name";
$form->commenter->size="30";
$form->email->caption="E-Mail";
$form->email->size="30";
$form->url->caption="URL";
$form->url->size="30";
//The following is just to bring the comment content field to the top. grrr.
$content=$form->controls['content'];
unset ($form->controls['content']);
array_unshift( $form->controls, $content );
// Utils::debug($form->controls);
}