element_form — Get the HTML for a form input for a given Element.

Form-related functions

Summary

element_form($element, $record, $options = array())

Get the HTML for a form input for a given Element.

Assume that the given element has access to all of its values (for example, all values of a Title element for a given Item).

This will output as many form inputs as there are values for a given element. In addition to that, it will give each set of inputs a label and a span with class=”tooltip” containing the description for the element. This span can either be displayed, hidden with CSS or converted into a tooltip with javascript.

All sets of form inputs for elements will be wrapped in a div with class=”field”.

Parameters:
Returns:

string HTML

Usage

Examples

See Also