Version 1
[yaffs-website] / web / core / modules / comment / tests / modules / comment_empty_title_test / comment_empty_title_test.module
diff --git a/web/core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module b/web/core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module
new file mode 100644 (file)
index 0000000..1fdbd6d
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+
+/**
+ * @file
+ * Dummy module emptying comment titles to test for appropriate and accessible
+ * markup in edge case scenarios where comments have empty titles.
+ */
+
+/**
+ * Implements hook_preprocess_comment().
+ */
+function comment_empty_titles_test_preprocess_comment(&$variables) {
+  $variables['title'] = '';
+}