function bueditor_buttons in BUEditor 5
Same name and namespace in other branches
- 6.2 bueditor.inc \bueditor_buttons()
- 6 bueditor.module \bueditor_buttons()
- 7 bueditor.inc \bueditor_buttons()
All buttons of an editor.
2 calls to bueditor_buttons()
- bueditor_buttons_processed in ./
bueditor.module - Processed buttons. Evaluate php code for php buttons.
- bueditor_form_editor in ./
bueditor.module - Editor form.
File
- ./
bueditor.module, line 386
Code
function bueditor_buttons($eid) {
$buttons = array();
$result = db_query("SELECT * FROM {bueditor_buttons} WHERE eid = %d ORDER BY weight, title", $eid);
while ($button = db_fetch_object($result)) {
$buttons[$button->bid] = $button;
}
return $buttons;
}