You are here

function bueditor_buttons_by_id in BUEditor 7

Same name and namespace in other branches
  1. 6.2 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 1007

Code

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