Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

purge_plugin_config()

Description

Purge configuration of a plugin.

Replaces config value in plugins table with NULL. Note, this function
will operate on an activated plugin as well so its configuration can
be 'defaulted' by the plugin's configuration page.

@category PluginAuthors

Parameters

ColumnTypeDefaultDescription
$name string Name of plugin to purge configuration.

Location

include/plugin_functions.php lines 99 to 105

Definition

 
function purge_plugin_config($name)
    {
    
ps_query("UPDATE plugins SET config = NULL, config_json = NULL where name = ?", array("s"$name));

    
// Clear query cache
    
clear_query_cache("plugins");
    }

This article was last updated 17th November 2024 15:35 Europe/London time based on the source file dated 8th November 2024 11:50 Europe/London time.