You are here

function monolog_channel_form_submit in Monolog 6

Same name and namespace in other branches
  1. 7 monolog.admin.inc \monolog_channel_form_submit()

Form submission handler for monolog_channel_form().

1 string reference to 'monolog_channel_form_submit'
monolog_channel_form in ./monolog.admin.inc
Channel settings for the Monolog module.

File

./monolog.admin.inc, line 112
Administrative settings for the Monolog module.

Code

function monolog_channel_form_submit($form, &$form_state) {
  $channel_profiles = array();
  foreach ($form_state['values']['channel_table']['channels'] as $name => $channel) {
    $channel_profiles[$name] = $channel['profile'];
  }
  variable_set('monolog_channel_profiles', $channel_profiles);
  drupal_set_message(t('The configuration options have been saved.'));
}