/* get informations about changes */ if (isset($_POST['showpt' . $type_index])) { $show_pt = $_POST['showpt' . $type_index]; if ($show_pt == 'on') { $show_pt = 1; } } if (isset($_POST['showeo' . $type_index])) { $show_eo = $_POST['showeo' . $type_index]; if ($show_eo == 'on') { $show_eo = 1; } } if (isset($_POST['showdy' . $type_index])) { $show_dy = $_POST['showdy' . $type_index]; if ($show_dy == 'on') { $show_dy = 1; } } /* fill array with option values */ array_push($type_options, $show_pt); array_push($type_options, $show_eo); array_push($type_options, $show_dy); /* generate option string */ $type_options_set = implode(';', $type_options); /* fill database with option string */ $specmanagement_database_api->update_type_options($type_id, $type_options_set); } } form_security_purge('plugin_SpecManagement_manage_types_update'); print_successful_redirect(plugin_page('manage_types', true));