You are here

function beautytips_ui_admin_submit in BeautyTips 8

Same name and namespace in other branches
  1. 6.2 beautytips_ui.module \beautytips_ui_admin_submit()
  2. 7.2 beautytips_ui.module \beautytips_ui_admin_submit()

Clear menu cache and theme registry in case beautytips help tips turned on or off

1 call to beautytips_ui_admin_submit()
BeautytipsConfigForm::submitForm in src/Form/BeautytipsConfigForm.php
Form submission handler.

File

beautytips_ui/beautytips_ui.module, line 30
Adds includes to Beautytips settings page and provides some built in functionality. TODO: hook_theme invoke - maybe Invoked include hooks: admin_info, menu_change, theme_change, form_change, menu_items ex beautytips_textinput_info.

Code

function beautytips_ui_admin_submit($form, $form_state) {
  \Drupal::moduleHandler()
    ->invoke('menu', 'rebuild');
  \Drupal::cache('menu')
    ->deleteAll();
  drupal_theme_rebuild();
}