You are here

function bueditor_export_buttons in BUEditor 7

Same name and namespace in other branches
  1. 5 bueditor.module \bueditor_export_buttons()
  2. 6.2 admin/bueditor.admin.inc \bueditor_export_buttons()
  3. 6 bueditor.admin.inc \bueditor_export_buttons()

Export buttons using var_export. The genarated code can also be imported as an editor.

1 call to bueditor_export_buttons()
bueditor_selaction_submit in admin/bueditor.admin.inc
Selected buttons actions form submission.

File

admin/bueditor.admin.inc, line 511

Code

function bueditor_export_buttons($bids = array()) {
  $editor = array();
  $editor['buttons'] = bueditor_exportable_buttons(bueditor_buttons_by_id($bids));
  if (!empty($editor['buttons'])) {
    bueditor_export_text(var_export($editor, TRUE), 'bueditor.buttons.txt');
  }
  drupal_set_message(t('There is no button to export.'), 'warning');
}