$form['ingredients'][$id]['quantity'] = array(
'#type' => 'textfield',
'#title' => '',
'#default_value' => $ingredient->quantity,
'#size' => 8,
'#maxlength' => 8),
'#description' => form_select('',
'#attributes' => 'ingredients]['.$id.'][unit_id',
'#required' => $ingredient->unit_id,
);
It's not valid code. Look:
$form['ingredients'][$id]['quantity'] =
array(
'#type' => 'textfield',
'#title' => '',
'#default_value' => $ingredient->quantity,
'#size' => 8,
'#maxlength' => 8
), <----This bracket and comma would generate an error....
There's something wrong with the auto-updater...
I know my PHP well, but nothing about drupal. If you want to go on here, I might be able to help further... |