Element example | Корпоративный Портал

Element example

The Element Example shows how modules can provide their own Form API element types. Four different element types are demonstrated.

form_example_textfield is a new type, but it is actually uses the system-provided functions of textfield
Nothing more than a regular checkbox but with a theme provided by this module.
(
)
A phone number : areacode (XXX), prefix (XXX) and extension (XXXX). This one uses a "discrete" element type, one which stores the three parts of the telephone number separately.
(
)
form_example_element_combined one uses a "combined" element type, one with a single 10-digit value which is broken apart when needed.