function dynamic_banner_admin_form_submit in Dynamic Banner 6
Same name and namespace in other branches
- 7.2 dynamic_banner.module \dynamic_banner_admin_form_submit()
- 7 includes/callbacks.inc \dynamic_banner_admin_form_submit()
- 8.x dynamic_banner.module \dynamic_banner_admin_form_submit()
Save a new Banner to the database.
File
- includes/
callbacks.inc, line 233 - Dynamic Banner Admin Pages and various other functions to make them work Most of the code in this file was derived from path module
Code
function dynamic_banner_admin_form_submit($form, &$form_state) {
_dynamic_banner_set_banner($form_state['values']['path'], $form_state['values']['imgurl'], $form_state['values']['text'], $form_state['values']['link'], isset($form_state['values']['dbid']) ? $form_state['values']['dbid'] : 0);
drupal_set_message(t('The banner has been saved.'));
$form_state['redirect'] = 'admin/build/banners';
return;
}