'post', 'disable_security' => FALSE, ); $vars = array_merge($defaults, $vars); $vars['class'] = (array) elgg_extract('class', $vars, []); $vars['class'][] = 'elgg-form'; $vars['action'] = elgg_normalize_url($vars['action']); $vars['method'] = strtolower($vars['method']); $body = $vars['body']; unset($vars['body']); // Generate a security header if (!$vars['disable_security']) { $body = elgg_view('input/securitytoken') . $body; } unset($vars['disable_security']); unset($vars['action_name']); echo elgg_format_element('form', $vars, "
$body
");