Project

General

Profile

Revision 01f36513

Added by Assos Assos about 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/webform/tests/WebformGeneralTestCase.test
1 1
<?php
2 2

  
3 3
/**
4
 * @file
5 4
 * Test general functionality of Webform.
6 5
 */
7

  
8
/**
9
 *
10
 */
11 6
class WebformGeneralTestCase extends WebformTestCase {
12 7

  
13 8
  /**
......
85 80
  }
86 81

  
87 82
  /**
83
   * Determine whether a Webform record exists for a given nid.
84
   *
85
   * @param int $nid
86
   *   The node ID.
87
   *
88 88
   * @return bool
89
   *   Whether or not the Webform record exists.
89 90
   */
90 91
  public function webformRecordExists($nid) {
91 92
    return (bool) db_query("SELECT nid FROM {webform} WHERE nid = :nid", array(':nid' => $nid))->fetchField();

Also available in: Unified diff