0
填充我想填充從環Drupal的形式從選項循環
$form['vote']['selected'] = array(
'#type' => 'select',
'#title' => 'Select',
'#name' => 'name',
);
foreach($loop as $row)
$form['vote']['selected']['#options'] = array($row->id => $row->name);
}
return $form;
選擇選項需要一些幫助?
謝謝,爲我工作 – Laky