aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/actions/editfield.php
blob: 7df7dd9ccd629782f8a60018846e4e5c7be78a98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * Elgg profile plugin edit default profile action
 *
 * @package ElggProfile
 */

admin_gatekeeper();

$field = get_input('field');
$text = get_input('value');

set_plugin_setting("admin_defined_profile_{$field}",$text,'profile');

echo $text;

exit;