You are here

function ad_permission_defaults_submit in Advertisement 5.2

Submit handler for global settings of all ad types.

See also

ad_form_alter()

File

permission/ad_permission.module, line 138
Provide granular permissions for advertisements.

Code

function ad_permission_defaults_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']);
}