You are here

function date_settings_validate in Date 6

1 string reference to 'date_settings_validate'
date_form_alter in date/date.module
Implementation of hook_form_alter(). Make sure date information gets updated.

File

date/date.module, line 333
Defines date/time field types for the Content Construction Kit (CCK).

Code

function date_settings_validate($form, &$form_state) {
  form_set_value(array(
    '#parents' => array(
      'granularity',
    ),
  ), array_keys(array_filter($form_state['values']['granularity'])), $form_state);
}