Closed (duplicate)
Project:
Date
Version:
7.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2013 at 07:13 UTC
Updated:
19 Jun 2016 at 14:21 UTC
Jump to comment: Most recent
In date_combo_validate(), pertinent values from $form_state['input'] and $form_state['values'] are stored in $item and $posted before calling drupal_alter('date_combo_pre_validate' ...) and used for validation afterwards. So, any changes to $form_state from a custom alter function are ignored.
Just wanted to quickly document this issue in case someone else sees unexpected results when calling hook_date_combo_pre_validate_alter().
Comments
Comment #1
hydranttom commentedDid you ever find a way around this?
Comment #2
thirdender commentedMarking this as a duplicate of #1983658: date_combo_pre_validate_alter() cannot change values, which is a newer issue but has a patch in progress.