Don't display date format, it's already in the placeholder text

This commit is contained in:
Stefan Parviainen
2014-10-19 11:09:51 +02:00
parent 519ef48500
commit a6c4ae186e
3 changed files with 1 additions and 37 deletions

View File

@@ -140,36 +140,6 @@ function dob($dob) {
}
function datesel_format($f) {
$o = '';
if(strlen($f)) {
for($x = 0; $x < strlen($f); $x ++) {
switch($f[$x]) {
case 'y':
if(strlen($o))
$o .= '-';
$o .= t('year');
break;
case 'm':
if(strlen($o))
$o .= '-';
$o .= t('month');
break;
case 'd':
if(strlen($o))
$o .= '-';
$o .= t('day');
break;
default:
break;
}
}
}
return $o;
}
/**
* returns a date selector
* @param $format