You are here

function bueditor_delete_form_submit in BUEditor 7

Same name and namespace in other branches
  1. 6.2 admin/bueditor.admin.inc \bueditor_delete_form_submit()
  2. 6 bueditor.admin.inc \bueditor_delete_form_submit()

Editor delete form submission.

1 call to bueditor_delete_form_submit()
bueditor_eop_delete in admin/bueditor.admin.inc
Editor delete operation. Mimics editor delete form submission.

File

admin/bueditor.admin.inc, line 589

Code

function bueditor_delete_form_submit($form, &$form_state) {
  $editor = $form_state['build_info']['args'][0];
  bueditor_delete_editor($editor->eid);
  drupal_set_message(t('Editor %name has been deleted.', array(
    '%name' => $editor->name,
  )));
  $form_state['redirect'] = 'admin/config/content/bueditor';
}