comment_empty_title_test.module

Same filename in other branches
  1. 8.9.x core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module
  2. 10 core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module
  3. 11.x core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module

Empties comment titles to test markup in edge case scenarios.

File

core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module

View source
<?php


/**
 * @file
 * Empties comment titles to test markup in edge case scenarios.
 */

/**
 * Implements hook_preprocess_comment().
 */
function comment_empty_title_test_preprocess_comment(&$variables) {
    $variables['title'] = '';
}

Functions

Title Deprecated Summary
comment_empty_title_test_preprocess_comment Implements hook_preprocess_comment().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.