function ad_text_global_settings_submit in Advertisement 6.2
Same name and namespace in other branches
- 5.2 text/ad_text.module \ad_text_global_settings_submit()
- 5 text/ad_text.module \ad_text_global_settings_submit()
- 6.3 text/ad_text.module \ad_text_global_settings_submit()
- 6 text/ad_text.module \ad_text_global_settings_submit()
- 7 text/ad_text.module \ad_text_global_settings_submit()
Settings form submit handler.
File
- text/
ad_text.module, line 182 - 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']);
}