Elgg  Version master
delete.php
Go to the documentation of this file.
1 <?php
6 $fields = [
7  [
8  '#type' => 'hidden',
9  'name' => 'guid',
10  'value' => elgg_extract('guid', $vars),
11  ],
12  [
13  '#type' => 'checkbox',
14  '#label' => elgg_echo('user:delete:confirm'),
15  'required' => true,
16  ],
17 ];
18 
19 foreach ($fields as $field) {
20  echo elgg_view_field($field);
21 }
22 
24  '#type' => 'submit',
25  'text' => elgg_echo('delete'),
26 ]);
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
if(elgg_extract('input_type', $vars)) if(elgg_extract('required', $vars)) if(elgg_extract('disabled', $vars)) $field
Definition: field.php:42
foreach($fields as $field) $footer
Definition: delete.php:23
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_set_form_footer(string $footer= '')
Sets form footer and defers its rendering until the form view and extensions have been rendered...
Definition: views.php:1046
$fields
Delete user confirmation form.
Definition: delete.php:6
$vars
Definition: theme.php:5