projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3f51a5725617e2ceb4aa46c2250f0078df4621be
[yaffs-website]
/
vendor
/
chi-teck
/
drupal-code-generator
/
templates
/
d7
/
hook
/
comment_presave.twig
1
/**
2
* Implements hook_comment_presave().
3
*/
4
function {{ machine_name }}_comment_presave($comment) {
5
// Remove leading & trailing spaces from the comment subject.
6
$comment->subject = trim($comment->subject);
7
}