You are here

function ad_global_settings_submit in Advertisement 5

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

Submit handler for global settings of all ad types.

See also

ad_form_alter()

File

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

Code

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