Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
unset_config($name, $site_guid=0)
Removes a config setting.
const REFERER
Definition: elgglib.php:2029
forward($location="", $reason= 'system')
Forward to $location.
Definition: elgglib.php:93
system_message($message)
Display a system message on next page load.
Definition: elgglib.php:438