aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets/save.php
blob: 4af60c7debc38ca569b719bc4307b4582a0e033e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
 * Elgg save widget settings action
 *
 * @package Elgg.Core
 * @subpackage Widgets.Management
 */

$guid = get_input('guid');
$params = get_input('params');

$result = elgg_save_widget_settings($guid, $params);

if (!$result) {
	register_error(elgg_echo('widgets:save:failure'));
}

forward(REFERER);