You are here

function date_api_form_system_settings_submit in Date 8

Store the Date API 8601 week numbers setting.

1 string reference to 'date_api_form_system_settings_submit'
date_api_form_system_regional_settings_alter in date_api/date_api.module
Implements hook_form_FORM_ID_alter() for system_regional_settings().

File

date_api/date_api.module, line 477
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

function date_api_form_system_settings_submit($form, &$form_state) {
  $form_values = $form_state['values'];
  config('date_api.settings')
    ->set('iso8601', $form_values['date_api_iso8601'])
    ->save();
}