plugin_config_set('CAmount', PLUGINS_SPECMANAGEMENT_COLUMN_AMOUNT); } $specmanagement_config_api->updateDynamicValues('CStatSelect', PLUGINS_SPECMANAGEMENT_COLUMN_STAT_DEFAULT); } /** * Submit configuration reset */ if ($option_reset) { print_successful_redirect(plugin_page('reset_ensure', true)); } /** * Add a document type */ if ($option_addtype) { if (isset($_POST['type'])) { $specmanagement_database_api->insert_type_row($_POST['type']); } } /** * Delete a document type */ if ($option_deltype) { if (isset($_POST['types'])) { $type_string = $_POST['types']; $type_id = $specmanagement_database_api->get_type_id($type_string); /* * Just delete a type if it is not used! */ if (!$specmanagement_database_api->check_type_is_used($type_id)) { $specmanagement_database_api->delete_type_row($type_string); }