/** * Automatically collect and save settings from a POST form * * @since 1.0 * * @return void **/ public function saveform() { if (empty($_POST['settings']) || !is_array($_POST['settings'])) { return false; } $settings = stripslashes_deep($_POST['settings']); $settings = Shopp::trim_deep($settings); foreach ($settings as $setting => $value) { $this->save($setting, $value); } }