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

hydranttom’s picture

Issue summary: View changes

Did you ever find a way around this?

thirdender’s picture

Status: Active » Closed (duplicate)

Marking 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.