You are here

function privatemsg_admin_settings_submit in Privatemsg 6.2

Same name and namespace in other branches
  1. 7.2 privatemsg.admin.inc \privatemsg_admin_settings_submit()
  2. 7 privatemsg.admin.inc \privatemsg_admin_settings_submit()

Submit handler to check if URL prefixes have changes and rebuild the menu cache if this is true.

1 string reference to 'privatemsg_admin_settings_submit'
privatemsg_admin_settings in ./privatemsg.admin.inc
@file Administration menu callbacks for Privatemsg.

File

./privatemsg.admin.inc, line 247
Administration menu callbacks for Privatemsg.

Code

function privatemsg_admin_settings_submit($form, &$form_state) {

  // Only rebuild menu if url prefix has changed.
  if ($form_state['values']['privatemsg_url_prefix'] != $form['privatemsg_listing']['privatemsg_url_prefix']['#default_value']) {
    menu_rebuild();
  }
}