Elgg  Version 5.1
Variables
save.php File Reference

Go to the source code of this file.

Variables

 $params = get_input('params')
 Saves global plugin settings. More...
 
 $flush_cache = get_input('flush_cache')
 
 $plugin_id = get_input('plugin_id')
 
if(empty($plugin_id)) $plugin = elgg_get_plugin_from_id($plugin_id)
 
if(!$plugin) $plugin_name = $plugin->getDisplayName()
 
 $result = false
 

Variable Documentation

$flush_cache = get_input('flush_cache')

Definition at line 14 of file save.php.

$params = get_input('params')

Saves global plugin settings.

This action can be overriden for a specific plugin by creating the <plugin_id>/settings/save action in that plugin.

array $_REQUEST['params'] A set of key/value pairs to save to the ElggPlugin entity mixed $_REQUEST['flush_cache'] If a truthy value is provided the caches will be flushed int $_REQUEST['plugin_id'] The ID of the plugin

Examples:
/root/Elgg/engine/lib/output.php, and /root/Elgg/engine/lib/views.php.

Definition at line 13 of file save.php.

if (empty($plugin_id)) $plugin = elgg_get_plugin_from_id($plugin_id)

Definition at line 20 of file save.php.

$plugin_id = get_input('plugin_id')

Definition at line 15 of file save.php.

if (!$plugin) $plugin_name = $plugin->getDisplayName()

Definition at line 25 of file save.php.

$result = false

Definition at line 27 of file save.php.