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

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

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

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