You are here

function ad_text_global_settings_submit in Advertisement 7

Same name and namespace in other branches
  1. 5.2 text/ad_text.module \ad_text_global_settings_submit()
  2. 5 text/ad_text.module \ad_text_global_settings_submit()
  3. 6.3 text/ad_text.module \ad_text_global_settings_submit()
  4. 6 text/ad_text.module \ad_text_global_settings_submit()
  5. 6.2 text/ad_text.module \ad_text_global_settings_submit()

Settings form submit handler.

File

text/ad_text.module, line 185
Enhances the ad module to support static text ads.

Code

function ad_text_global_settings_submit($form, &$form_state) {
  variable_set('header_min', $form_state['values']['header_min']);
  variable_set('header_max', $form_state['values']['header_max']);
  variable_set('body_min', $form_state['values']['body_min']);
  variable_set('body_max', $form_state['values']['body_max']);
}