aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/submit.php
blob: 315a70eac1d408ab2d48ab4d82995da7ff3893f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
/**
 * Create a submit input button
 * Use this view for forms rather than creating a submit/reset button tag in the wild as it provides
 * extra security which help prevent CSRF attacks.
 *
 * @package Elgg
 * @subpackage Core
 */

$vars['type'] = 'submit';
if (!isset($vars['class'])) {
	$vars['class'] = "submit_button";
}

echo elgg_view('input/button', $vars);