ninja_forms_add_calc_row
Function that outputs a calculation row.
Description
ninja_forms_add_calc_row();
Usage
if ( !function_exists( 'ninja_forms_add_calc_row' ) ) { require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/ajax.php'; } // NOTICE! Understand what this does before running. $result = ninja_forms_add_calc_row();
Defined (1)
The function is defined in the following location(s).
- /deprecated/includes/admin/ajax.php
- function ninja_forms_add_calc_row() {
- // Bail if we aren't in the admin
- if ( ! is_admin() )
- return false;
- check_ajax_referer( 'nf_ajax', 'nf_ajax_nonce' );
- $field_id = absint( $_REQUEST['field_id'] );
- $c = array( 'calc' => '', 'operator' => 'add', 'value' => '', 'when' => '' );
- $x = absint( $_REQUEST['x'] );
- ninja_forms_output_field_calc_row( $field_id, $c, $x );
- die();
- }