Don't display date format, it's already in the placeholder text
This commit is contained in:
parent
519ef48500
commit
a6c4ae186e
@ -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
|
* returns a date selector
|
||||||
* @param $format
|
* @param $format
|
||||||
|
@ -520,11 +520,6 @@ function events_content(&$a) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$dateformat = datesel_format($f);
|
|
||||||
$timeformat = t('hour:minute');
|
|
||||||
|
|
||||||
require_once('include/acl_selectors.php');
|
require_once('include/acl_selectors.php');
|
||||||
|
|
||||||
$perm_defaults = array(
|
$perm_defaults = array(
|
||||||
@ -544,7 +539,6 @@ function events_content(&$a) {
|
|||||||
'$mid' => $mid,
|
'$mid' => $mid,
|
||||||
|
|
||||||
'$title' => t('Event details'),
|
'$title' => t('Event details'),
|
||||||
'$format_desc' => sprintf( t('Format is %s %s.'),$dateformat,$timeformat),
|
|
||||||
'$desc' => t('Starting date and Title are required.'),
|
'$desc' => t('Starting date and Title are required.'),
|
||||||
'$catsenabled' => $catsenabled,
|
'$catsenabled' => $catsenabled,
|
||||||
'$placeholdercategory' => t('Categories (comma-separated list)'),
|
'$placeholdercategory' => t('Categories (comma-separated list)'),
|
||||||
|
@ -626,7 +626,7 @@ logger('extra_fields: ' . print_r($extra_fields,true));
|
|||||||
'$lbl_fullname' => t('Your Full Name:'),
|
'$lbl_fullname' => t('Your Full Name:'),
|
||||||
'$lbl_title' => t('Title/Description:'),
|
'$lbl_title' => t('Title/Description:'),
|
||||||
'$lbl_gender' => t('Your Gender:'),
|
'$lbl_gender' => t('Your Gender:'),
|
||||||
'$lbl_bd' => sprintf( t("Birthday \x28%s\x29:"),datesel_format($f)),
|
'$lbl_bd' => t("Birthday :"),
|
||||||
'$lbl_address' => t('Street Address:'),
|
'$lbl_address' => t('Street Address:'),
|
||||||
'$lbl_city' => t('Locality/City:'),
|
'$lbl_city' => t('Locality/City:'),
|
||||||
'$lbl_zip' => t('Postal/Zip Code:'),
|
'$lbl_zip' => t('Postal/Zip Code:'),
|
||||||
|
Reference in New Issue
Block a user