You are here

function ad_global_settings_submit in Advertisement 6

Same name and namespace in other branches
  1. 5 ad.module \ad_global_settings_submit()

Submit handler for global settings of all ad types.

See also

ad_form_alter()

1 string reference to 'ad_global_settings_submit'
ad_owners_form_alter in owners/ad_owners.module
Implementation of hook_form_alter().

File

./ad.module, line 793
An advertising system for Drupal powered websites.

Code

function ad_global_settings_submit($form, &$form_state) {
  variable_set('ad_' . $form_state['values']['adtype'] . '_default_permissions', $form_state['values']['default_permissions']);
  unset($form_state['values']['adtype'], $form_state['values']['default_permissions']);
}