Elgg  Version master
register.php
Go to the documentation of this file.
1 <?php
12 $friend_guid = (int) get_input('friend_guid', 0);
13 $invitecode = get_input('invitecode');
14 
16  'class' => 'elgg-form-account',
17  'ajax' => true,
18  'sticky_enabled' => true,
19  'sticky_ignored_fields' => [
20  'password',
21  'password2',
22  ],
23 ];
24 
26  'friend_guid' => $friend_guid,
27  'invitecode' => $invitecode
28 ];
30 
31 $content .= elgg_view('help/register');
32 
33 $shell = elgg_get_config('walled_garden') ? 'walled_garden' : 'default';
34 
35 echo elgg_view_page(elgg_echo('register'), [
36  'content' => $content,
37  'sidebar' => false,
38  'filter' => false,
39 ], $shell);
elgg_view_form(string $action, array $form_vars=[], array $body_vars=[])
Definition: views.php:1033
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
$content
Definition: register.php:29
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
$form_params
Definition: register.php:15
$body_params
Definition: register.php:25
$friend_guid
Assembles and outputs the registration page.
Definition: register.php:12
get_input(string $variable, $default=null, bool $filter_result=true)
Parameter input functions.
Definition: input.php:20
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
elgg_view_page(string $title, string|array $body, string $page_shell= 'default', array $vars=[])
Assembles and outputs a full page.
Definition: views.php:235
$invitecode
Definition: register.php:13
$shell
Definition: register.php:33