aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/date.php
blob: 62014cb92d259df7ddb3c44e477767781bb83c36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
$defaults = array(
	'placeholder' => elgg_echo('placeholder:date'), //'yyyy-mm-dd',
);

$overrides = array(
	'type' => 'date',
);

if (isset($vars['value']) && is_int($vars['value'])) {
	$vars['value'] = date("Y-m-d", $vars['value']);
}

echo elgg_view('html/input', array_merge($defaults, $vars, $overrides));