You are here

function borealis_ajax_settings_save in Borealis 7.2

Same name and namespace in other branches
  1. 7 borealis.module \borealis_ajax_settings_save()

Helper function for saving settings to a variable

1 call to borealis_ajax_settings_save()
borealis_ri_responsive_styles_settings_ajax in borealis_ri/admin/borealis_ri.responsive_styles.admin.inc
1 string reference to 'borealis_ajax_settings_save'
borealis_ri_responsive_styles_settings_form in borealis_ri/admin/borealis_ri.responsive_styles.admin.inc

File

./borealis.module, line 43

Code

function borealis_ajax_settings_save($form, $form_state) {
  $key = $form['borealis_key']['#value'];
  $trigger = $form_state['triggering_element']['#name'];
  $value = $form_state['triggering_element']['#value'];
  variable_set($key . '_' . $trigger, $value);
}