You are here

function bueditor_buttons in BUEditor 6

Same name and namespace in other branches
  1. 5 bueditor.module \bueditor_buttons()
  2. 6.2 bueditor.inc \bueditor_buttons()
  3. 7 bueditor.inc \bueditor_buttons()

All buttons of an editor.

2 calls to bueditor_buttons()
bueditor_editor_form in ./bueditor.admin.inc
Editor form.
bueditor_processed_buttons in ./bueditor.module
Processed buttons. Evaluate php code for php buttons and translate titles prefixed with t:.
2 string references to 'bueditor_buttons'
bueditor_editor_submit in ./bueditor.admin.inc
Save editor & buttons.
bueditor_update_6000 in ./bueditor.install
Update from 4|5.x to 6.x Add new fields: {bueditor_editors}.iconpath, {bueditor_editors}.librarypath. Change {bueditor_buttons}.accesskey field type from char to varchar. Update {bueditor_buttons}.content field values. Insert the latest version of…

File

./bueditor.module, line 84

Code

function bueditor_buttons($eid) {
  $buttons = array();
  if ($eid) {
    $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;
}