Elgg  Version 1.11
reset.php
Go to the documentation of this file.
1 <?php
7 $fieldlist = elgg_get_config('profile_custom_fields');
8 if ($fieldlist) {
9  $fieldlistarray = explode(',', $fieldlist);
10  foreach ($fieldlistarray as $listitem) {
11  unset_config("admin_defined_profile_{$listitem}");
12  unset_config("admin_defined_profile_type_{$listitem}");
13  }
14 }
15 
16 unset_config('profile_custom_fields');
17 
18 system_message(elgg_echo('profile:defaultprofile:reset'));
19 
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
$fieldlist
Reset profile fields action.
Definition: reset.php:7
unset_config($name, $site_guid=0)
Removes a config setting.
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
Definition: elgglib.js:419
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
const REFERER
Definition: elgglib.php:1995
elgg system_message
Wrapper function for system_messages.
Definition: elgglib.js:374