Elgg
Version 6.1
|
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 | |
$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.
if (empty($plugin_id)||empty($user_guid)) $plugin = elgg_get_plugin_from_id($plugin_id) |
if (!$plugin||!$user||!$user->canEdit()) $plugin_name = $plugin->getDisplayName() |
$user_guid = (int) get_input('user_guid', elgg_get_logged_in_user_guid()) |