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