X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Fcomment_publish.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Fcomment_publish.twig;h=1b63f282af306054b514d08d511c865a5cbcd95f;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/comment_publish.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/comment_publish.twig new file mode 100644 index 000000000..1b63f282a --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/comment_publish.twig @@ -0,0 +1,6 @@ +/** + * Implements hook_comment_publish(). + */ +function {{ machine_name }}_comment_publish($comment) { + drupal_set_message(t('Comment: @subject has been published', array('@subject' => $comment->subject))); +}