Elgg  Version 4.3
tools.php File Reference

Go to the source code of this file.


 $user = elgg_get_page_owner_entity()
 $plugin_id = elgg_extract('plugin_id', $vars)
 $plugin = elgg_get_plugin_from_id($plugin_id)
if(!$plugin instanceof\ElggPlugin) if(elgg_language_key_exists($plugin_id. ':usersettings:title')) else
 $form_vars = []
if(elgg_action_exists("{$plugin_id}/usersettings/save")) $content = elgg_view_form('plugins/usersettings/save', $form_vars, ['entity' => $plugin])

Variable Documentation

if (elgg_action_exists("{$plugin_id}/usersettings/save")) $content = elgg_view_form('plugins/usersettings/save', $form_vars, ['entity' => $plugin])

Definition at line 30 of file tools.php.

$form_vars = []

Definition at line 25 of file tools.php.

$plugin = elgg_get_plugin_from_id($plugin_id)

Definition at line 12 of file tools.php.

$plugin_id = elgg_extract('plugin_id', $vars)

Definition at line 10 of file tools.php.

Definition at line 8 of file tools.php.

if (!$plugin instanceof\ElggPlugin) if (elgg_language_key_exists($plugin_id. ':usersettings:title')) else
Initial value:
$title = $plugin->getDisplayName()
Definition: tools.php:12
Definition: generic.php:50

Definition at line 19 of file tools.php.