【发布时间】:2011-03-08 08:47:31
【问题描述】:
更新
我已经使用表单 API 制作了一个 Drupal 表单。我使用了元素选择,我的问题是如何获得用户选择的值? 例如:以下代码。我怎么知道用户为“Titles plus teaser”(预告片)选择了什么。谢谢!
form ['planning_detail']['study_groep'] = array (
'# type =' select ',
'# title' = 'Pick a value',
'# options' => array (
'title' => t ('Titles only '),
'teaser' => t ('Titles plus teaser'),
'full text' => t ('Full text '),
)
);
【问题讨论】:
标签: php drupal select drupal-fapi