sumToNewField

The Contact Form DB sumToNewField function.

Description

sumToNewField( &$entry ); 

Parameters (1)

0. $entry
The entry.

Usage

  1. if ( !function_exists( 'sumToNewField' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-db/phpunit/TransformEntryFunctionTest.php'; 
  3.  
  4. // The entry. 
  5. $entry = &$entry; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = sumToNewField($entry); 
  9.  

Defined (1)

The function is defined in the following location(s).

/phpunit/TransformEntryFunctionTest.php  
  1. function sumToNewField(&$entry) { 
  2. $entry['c'] = $entry['a'] + $entry['b'];