You are here

function bueditor_buttons_by_id in BUEditor 6.2

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

Load buttons by ids.

2 calls to bueditor_buttons_by_id()
bueditor_export_buttons in admin/bueditor.admin.inc
Export buttons using var_export. The genarated code can also be imported as an editor.
bueditor_selaction_submit in admin/bueditor.admin.inc
Selected buttons actions form submission.

File

admin/bueditor.admin.inc, line 901

Code

function bueditor_buttons_by_id($bids = array()) {
  $sql = 'SELECT * FROM {bueditor_buttons} WHERE bid IN (' . db_placeholders($bids) . ') ORDER BY weight, title';
  return empty($bids) ? array() : bueditor_query_buttons($sql, $bids);
}