public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/builder/settingsform.php
/**
		 * Method called when settings form details are being saved.
		 *
		 * @param Array $formValues The list of settings being saved.
		 *
		 * @see wplib/EasyForm::handleSave()
		 */
Method called when settings form details are being saved.
@param Array $formValues The list of settings being saved.


Method called when settings form details are being saved . @param Array $formValues The list of settings being saved .
protected function handleSave( $formValues ) {
			$originalSettings = WPCW_TidySettings_getSettings( $this->settingPrefix );
			foreach ( $formValues as $name => $value ) {
				$originalSettings[ $name ] = $value;
			}
			$saveSuccess = WPCW_TidySettings_saveSettings( $originalSettings, $this->settingPrefix );
			if ( $saveSuccess ) {
				$this->messages = $this->showMessage( $this->msg_settingsSaved );
			} else {
				$this->messages = $this->showMessage( $this->msg_settingsProblem, true );
			}
		}
protected function handleSave ( $ formValues ) { $ originalSettings = WPCW_TidySettings_getSettings ( $ this -> settingPrefix ) ; foreach ( $ formValues as $ name => $ value ) { $ originalSettings [ $ name ] = $ value ; } $ saveSuccess = WPCW_TidySettings_saveSettings ( $ originalSettings , $ this -> settingPrefix ) ; if ( $ saveSuccess ) { $ this -> messages = $ this -> showMessage ( $ this -> msg_settingsSaved ) ; } else { $ this -> messages = $ this -> showMessage ( $ this -> msg_settingsProblem , true ) ; } }
Method called when settings form details are being saved.
Method called when settings form details are being saved .
// Get existing settings first (in case we don't have all the setting to play with // on a certain page), then merge changes.