LJ::entry_form — Returns a properly formatted form for creating/editing entries.
LJ::entry_form(head, onload, opts);
head. string reference for the <head> section (JavaScript previews, etc).
onload. string reference for JavaScript functions to be called on page load
opts. hashref of keys/values: mode: either "update" or "edit", depending on context; datetime: date and time, formatted yyyy-mm-dd hh:mm; remote: remote u object; subject: entry subject; event: entry text; richtext: allow rich text formatting; auth_as_remote: bool option to authenticate as remote user, pre-filling pic/friend groups/etc.