function bueditor_query_buttons in BUEditor 6.2
Same name and namespace in other branches
- 7 bueditor.inc \bueditor_query_buttons()
Fetch buttons by an sql query.
2 calls to bueditor_query_buttons()
- bueditor_buttons in ./
bueditor.inc - All buttons of an editor.
- bueditor_buttons_by_id in admin/
bueditor.admin.inc - Load buttons by ids.
File
- ./
bueditor.inc, line 43 - Implements commonly used functions for bueditor.
Code
function bueditor_query_buttons($sql, $var = array()) {
$buttons = array();
$result = db_query($sql, $var);
while ($button = db_fetch_object($result)) {
$buttons[$button->bid] = $button;
}
return $buttons;
}