mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
11 lines
283 B
PHP
11 lines
283 B
PHP
<?php
|
|
|
|
class CommentingControllerTwitterUsernameExtension extends DataExtension {
|
|
|
|
public function alterCommentForm(&$form) {
|
|
$fields = $form->Fields();
|
|
|
|
// FIXME order
|
|
$fields->insertBefore($tf = new TextField('TwitterUsername','Twitter Username'), 'Comment');
|
|
}
|
|
} |