Skip to content
elplatt edited this page Sep 17, 2012 · 3 revisions

Forms are created by calling:

theme('form', $form);

The format for $form is:

array(
    'type' => 'form',
    'method' => <'get' or 'post'>,
    'action' => <name of command handler>,
    'hidden' => array(
        'hiddenVar' => 'hiddenValue',
        'hiddenVar2' => 'hiddenValue2',
        ...
    ),
    'fields' => array(
        $field1,
        $field2,
        ...
    )
);