You are here

function calendar_systems_languages_overview_form_submit in Calendar Systems 6.2

Submission callback for Locale language overview form.

1 string reference to 'calendar_systems_languages_overview_form_submit'
calendar_systems_form_locale_languages_overview_form_alter in ./calendar_systems.module
Implements hook_form_FORM_ID_alter().

File

./calendar_systems.module, line 226
Contains Calendar Systems module hooks, helpers and API functions.

Code

function calendar_systems_languages_overview_form_submit($form, &$form_state) {

  // Save the choosen calendar for a specific locale in a
  // "calendar_systems_{LANGUAGE}_calendar" formatted db variable.
  foreach ($form_state['values']['calendar_systems_languages'] as $lang => $calendar) {
    variable_set('calendar_systems_' . $lang . '_calendar', $calendar);
  }
}