function CommentHelperCase::commentContactInfoAvailable in Drupal 7
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 - Tests for comment.module.
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());
}