aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/date.php
blob: 8987d3e4a6226ebe06cdc82582dea2b8ed362c2a (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('input/default', array_merge($defaults, $vars, $overrides));