You are here

function _tableofcontents_filter_settings_submit in Table of Contents 7.2

Saves the filter settings.

1 call to _tableofcontents_filter_settings_submit()
tableofcontents_filter_settings_submit in ./tableofcontents.module

File

./tableofcontents.admin.inc, line 300
Include the different setup (administration forms) for the table of contents module.

Code

function _tableofcontents_filter_settings_submit($form, &$form_state) {
  $format = $form_state['values']['format'];
  $settings = $form_state['values']['filters']['filter_toc']['settings']['tableofcontents'];
  variable_set("tableofcontents_filter_settings_{$format}", $settings);
}