Elgg
Version 3.0
|
Go to the source code of this file.
Namespaces | |
Elgg\Core | |
Updates the advanced settings for the primary site object. | |
Variables | |
$guid = (int) get_input('guid') | |
$params = (array) get_input('params') | |
$default_widgets = (int) get_input('default_widgets', 0) | |
$context = get_input('context') | |
$widget = get_entity($guid) | |
if(!($widget instanceof\ElggWidget)||!$widget->saveSettings($params)) | $context_stack = [] |
if($default_widgets) | $context_stack [] = 'widgets' |
$output | |
if (!($widget instanceof\ElggWidget)||!$widget->saveSettings($params)) $context_stack = [] |
$output |
$widget = get_entity($guid) |