aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/date.php
blob: 7e35c7beb9c686d19cd5cc5ff1330ea0d4ade2e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
$defaults = array(
	'placeholder' => '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('input/default', array_merge($defaults, $vars, $overrides));