Skip to content

Commit

Permalink
[Form] Removed unused option "pattern" of date and time type
Browse files Browse the repository at this point in the history
  • Loading branch information
webmozart committed May 18, 2011
1 parent f467317 commit 520e376
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
Expand Up @@ -37,9 +37,6 @@ public function buildForm(FormBuilder $builder, array $options)
'with_seconds',
)));

if (isset($options['date_pattern'])) {
$dateOptions['pattern'] = $options['date_pattern'];
}
if (isset($options['date_widget'])) {
$dateOptions['widget'] = $options['date_widget'];
}
Expand All @@ -49,9 +46,6 @@ public function buildForm(FormBuilder $builder, array $options)

$dateOptions['input'] = 'array';

if (isset($options['time_pattern'])) {
$timeOptions['pattern'] = $options['time_pattern'];
}
if (isset($options['time_widget'])) {
$timeOptions['widget'] = $options['time_widget'];
}
Expand Down Expand Up @@ -103,10 +97,8 @@ public function getDefaultOptions(array $options)
// Don't modify \DateTime classes by reference, we treat
// them like immutable value objects
'by_reference' => false,
'date_pattern' => null,
'date_widget' => null,
'date_format' => null,
'time_pattern' => null,
'time_widget' => null,
/* Defaults for date field */
'years' => range(date('Y') - 5, date('Y') + 5),
Expand Down
Expand Up @@ -119,7 +119,6 @@ public function getDefaultOptions(array $options)
'days' => range(1, 31),
'widget' => 'choice',
'input' => 'datetime',
'pattern' => null,
'format' => \IntlDateFormatter::MEDIUM,
'data_timezone' => null,
'user_timezone' => null,
Expand Down
Expand Up @@ -94,7 +94,6 @@ public function getDefaultOptions(array $options)
'widget' => 'choice',
'input' => 'datetime',
'with_seconds' => false,
'pattern' => null,
'data_timezone' => null,
'user_timezone' => null,
'csrf_protection' => false,
Expand Down

0 comments on commit 520e376

Please sign in to comment.