You are here

function bueditor_selaction_submit in BUEditor 6

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

Export or delete selected buttons.

1 string reference to 'bueditor_selaction_submit'
bueditor_editor_form in ./bueditor.admin.inc
Editor form.

File

./bueditor.admin.inc, line 346

Code

function bueditor_selaction_submit($form, &$form_state) {
  $bids = array_keys(array_filter($form_state['values']['checks']));
  switch ($form_state['values']['selaction']) {
    case 'delete':
      bueditor_delete_buttons($bids);
      break;
    case 'export':
      bueditor_export_buttons($bids);
      break;
  }
}