You are here

function popup_ui_reset in Popup 7

Same name and namespace in other branches
  1. 8 modules/popup_ui/includes/popup_ui.admin.inc \popup_ui_reset()
  2. 7.x modules/popup_ui/includes/popup_ui.admin.inc \popup_ui_reset()
  3. 6.x modules/popup_ui/includes/popup_ui.admin.inc \popup_ui_reset()
1 string reference to 'popup_ui_reset'
popup_ui_menu in modules/popup_ui/popup_ui.module
Implementation of hook_menu

File

modules/popup_ui/includes/popup_ui.admin.inc, line 402

Code

function popup_ui_reset() {
  module_load_include('inc', 'popup_ui', 'includes/popup_ui.util');
  _popup_ui_formatter_settings(_popup_ui_formatter_defaults());
  _popup_ui_flush_all();
  drupal_set_message(t('Default settings have been restored.'));
  drupal_goto('admin/config/user-interface/popup/formats');
}