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

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

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

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