function bueditor_sprite in BUEditor 6.2
Same name and namespace in other branches
- 7 admin/bueditor.sprite.inc \bueditor_sprite()
Create and return editor sprite depending on editor settings or buttons.
1 call to bueditor_sprite()
- bueditor_write_editor in admin/
bueditor.admin.inc - Update/insert an editor.
File
- admin/
bueditor.sprite.inc, line 11 - Generates CSS sprites for editor buttons.
Code
function bueditor_sprite($editor, $buttons = array()) {
if (!empty($buttons)) {
uasort($buttons, create_function('$b1,$b2', 'return $b1->weight - $b2->weight;'));
return bueditor_sprite_buttons($buttons, $editor->iconpath);
}
elseif (isset($editor->eid) && $editor->eid > 0) {
return bueditor_sprite_editor($editor);
}
return '';
}