I'm looking for a way to render a form with 2 text-fields in to the same (for each) line. I would like to do this using hook functions, so I tried with this:
function mymodule_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'form_page_1') {
$form['#type'] = 'table';
}
}
But obviously it doesn't work. Do you have any idea?
if ($form_id = 'form'page'1') {
is wrong. It needs to beif ($form_id == 'form'page'1') {
. Next thing'form'page'1'
is wrong. It probably needs to be'form_page_1'
or something else.