1 contact.admin.inc contact_settings_form_submit($form, &$form_state)

Contact settings form submit handler.

See also

contact_settings_form()

File

core/modules/contact/contact.admin.inc, line 91
Admin page callbacks for the Contact module.

Code

function contact_settings_form_submit($form, &$form_state) {
  // Update user permissions for each role.
  foreach ($form_state['values']['permissions']['roles'] as $role_name => $role) {
    user_role_change_permissions($role->name, $form_state['values']['permissions']['checkboxes'][$role->name]);
  }

  // Remove permissions from default #config store (contact.settings).
  unset($form_state['values']['permissions']);
}