Elgg  Version 5.1
Variables
save.php File Reference

Go to the source code of this file.

Variables

 $params = get_input('params')
 Saves user-specific plugin settings. More...
 
 $plugin_id = get_input('plugin_id')
 
 $user_guid = (int) get_input('user_guid', elgg_get_logged_in_user_guid())
 
if(empty($plugin_id)||empty($user_guid)) $plugin = elgg_get_plugin_from_id($plugin_id)
 
 $user = get_user($user_guid)
 
if(!$plugin||!$user||!$user->canEdit()) $plugin_name = $plugin->getDisplayName()
 
 $result = false
 

Variable Documentation

$params = get_input('params')

Saves user-specific plugin settings.

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

array $_REQUEST['params'] A set of key/value pairs to save to the ElggPlugin entity int $_REQUEST['plugin_id'] The id of the plugin int $_REQUEST['user_guid'] The GUID of the user to save settings for.

Definition at line 13 of file save.php.

if (empty($plugin_id)||empty($user_guid)) $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 14 of file save.php.

if (!$plugin||!$user||!$user->canEdit()) $plugin_name = $plugin->getDisplayName()

Definition at line 26 of file save.php.

$result = false

Definition at line 28 of file save.php.

$user = get_user($user_guid)

Definition at line 21 of file save.php.

$user_guid = (int) get_input('user_guid', elgg_get_logged_in_user_guid())

Definition at line 15 of file save.php.