mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Merge pull request #245 from creative-commoners/pulls/2.0/reallow-commentform-alterations
FIX reintroduce extension hook for comment form rendering
This commit is contained in:
commit
eb0415a938
@ -475,7 +475,12 @@ class CommentingController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function CommentsForm()
|
public function CommentsForm()
|
||||||
{
|
{
|
||||||
return Injector::inst()->create(CommentForm::class, __FUNCTION__, $this);
|
$form = Injector::inst()->create(CommentForm::class, __FUNCTION__, $this);
|
||||||
|
|
||||||
|
// hook to allow further extensions to alter the comments form
|
||||||
|
$this->extend('alterCommentForm', $form);
|
||||||
|
|
||||||
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user