nf_get_form_settings

Get an array of form settings by form ID.

Description

(array) nf_get_form_settings( (int) $form_id ); 

Returns (array)

$form['data']

Parameters (1)

0. $form_id (int)
The form id.

Usage

  1. if ( !function_exists( 'nf_get_form_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/deprecated.php'; 
  3.  
  4. // The form id. 
  5. $form_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nf_get_form_settings($form_id); 
  9.  

Defined (1)

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

/deprecated/includes/deprecated.php  
  1. function nf_get_form_settings( $form_id ) { 
  2. return nf_get_object_meta( $form_id );