public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/builder/easyform.php
/**
		 * Load the form object with the default values from an associative array mapping
		 * field name => field value.
		 *
		 * @param Array $valueList The list of values to load as defaults into the form.
		 */
Load the form object with the default values from an associative array mapping
field name => field value.

@param Array $valueList The list of values to load as defaults into the form.
Load the form object with the default values from an associative array mapping field name = > field value . @param Array $valueList The list of values to load as defaults into the form .
public function loadDefaults( $valueList ) {
			if ( ! $valueList || ! is_array( $valueList ) ) {
				error_log( 'EasyForm:loadDefaults() - $valueList is empty' );
				return;
			}
			if ( $this->filterBeforeLoadDefaultsFunction && function_exists( $this->filterBeforeLoadDefaultsFunction ) ) {
				$valueList = call_user_func( $this->filterBeforeLoadDefaultsFunction, $valueList );
			}
			$this->formObj->setDefaultValues( $valueList );
		}
public function loadDefaults ( $ valueList ) { if ( ! $ valueList || ! is_array ( $ valueList ) ) { error_log ( 'EasyForm:loadDefaults() - $valueList is empty' ) ; return ; } if ( $ this -> filterBeforeLoadDefaultsFunction && function_exists ( $ this -> filterBeforeLoadDefaultsFunction ) ) { $ valueList = call_user_func ( $ this -> filterBeforeLoadDefaultsFunction , $ valueList ) ; } $ this -> formObj -> setDefaultValues ( $ valueList ) ; }
Load the form object with the default values from an associative array mapping
 field name => field value.
Load the form object with the default values from an associative array mapping field name = > field value .
// Filter the default values before they are loaded into the form.