settings = $settings; $this->form = $form; } /** * Store the name and description. * * These are needed to create the setting markup. * Then, store this markup in the settings. * Adding this markup to the settings is the main purpose of this class. * * @param string $name Gravity form name. * @param string $description Gravity form description. * @return void */ public function set_values( $name, $description ) { $this->setting_name = $name; $this->setting_description = $description; $this->add_setting(); } /** * Add the new setting to the existing settings. * * Using the name and description from set_values(). * Add the markup for a checkbox to the 'Form Layout' section. * * @return void */ public function add_setting() { $markup = '