function popup_ui_delete_format in Popup 7
Same name and namespace in other branches
- 8 modules/popup_ui/includes/popup_ui.admin.inc \popup_ui_delete_format()
- 7.x modules/popup_ui/includes/popup_ui.admin.inc \popup_ui_delete_format()
- 6.x modules/popup_ui/includes/popup_ui.admin.inc \popup_ui_delete_format()
1 string reference to 'popup_ui_delete_format'
- popup_ui_menu in modules/
popup_ui/ popup_ui.module - Implementation of hook_menu
File
- modules/
popup_ui/ includes/ popup_ui.admin.inc, line 372
Code
function popup_ui_delete_format($format) {
module_load_include('inc', 'popup_ui', 'includes/popup_ui.util');
$settings = _popup_ui_formatter_settings();
unset($settings[$format]);
_popup_ui_formatter_settings($settings);
_popup_ui_flush_all();
drupal_set_message(t('The "%format" filter format has been deleted.', array(
'%format' => $format,
)));
drupal_goto('admin/config/user-interface/popup/formats');
}