You are here

function _taxonomy_menu_save_form_settings in Taxonomy menu 7.2

Same name and namespace in other branches
  1. 8 taxonomy_menu.admin.inc \_taxonomy_menu_save_form_settings()

Helper function, which recursively saves all the submitted settings values of a form.

Parameters

$settings: An array of all the settings' values to be saved.

1 call to _taxonomy_menu_save_form_settings()
taxonomy_menu_vocab_submit in ./taxonomy_menu.admin.inc
Form submission handler for taxonomy_form_vocabulary().

File

./taxonomy_menu.admin.inc, line 368
Administrative page callbacks for the Taxonomy menu module.

Code

function _taxonomy_menu_save_form_settings($settings, $vid) {
  foreach ($settings as $key => $value) {
    if (is_array($value)) {
      _taxonomy_menu_save_form_settings($value, $vid);
    }
    else {
      taxonomy_menu_variable_set($key, $vid, $value);
    }
  }
}