function CommentHelperCase::commentContactInfoAvailable

Check for contact info.

Return value

boolean Contact info is available.

1 call to CommentHelperCase::commentContactInfoAvailable()
CommentAnonymous::testAnonymous in modules/comment/comment.test
Test anonymous comment functionality.

File

modules/comment/comment.test, line 220

Class

CommentHelperCase
@file Tests for comment.module.

Code

function commentContactInfoAvailable() {
    return preg_match('/(input).*?(name="name").*?(input).*?(name="mail").*?(input).*?(name="homepage")/s', $this->drupalGetContent());
}

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