You are here

function bueditor_delete_form_submit in BUEditor 6.2

Same name and namespace in other branches
  1. 6 bueditor.admin.inc \bueditor_delete_form_submit()
  2. 7 admin/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 505

Code

function bueditor_delete_form_submit($form, &$form_state) {
  $editor = $form['#parameters'][2];
  bueditor_delete_editor($editor->eid);
  drupal_set_message(t('Editor %name has been deleted.', array(
    '%name' => $editor->name,
  )));
  $form_state['redirect'] = 'admin/settings/bueditor';
}