You are here

function realname_settings_form_submit in Real Name 7

Form submission handler for realname_settings_form().

See also

realname_settings_form_validate()

1 string reference to 'realname_settings_form_submit'
realname_settings_form in ./realname.admin.inc
Form constructor for the Real name settings form.

File

./realname.admin.inc, line 74
Administrative page callbacks for the realname module.

Code

function realname_settings_form_submit($form, $form_state) {
  if ($form['general']['realname_pattern']['#default_value'] != $form_state['values']['realname_pattern']) {

    // Only clear the realname cache if the pattern was changed.
    realname_delete_all();
  }
}