[转载]Drupal 模块开发基本教程(三) ... '#type' => 'textfield', // 表单元素的类型 '#title' => t('Title'), // 表单元素的标题 '#required' => TRUE, // 是否必须输入的值 ...
基于8个网页-相关网页
每个表单元素的类型取决于数据元素的数据类型。
The type of form element is based on the data type of the data element.
请注意:表单元素的类型是具有三个不同选项的下拉列表,如图 2 所示
Note that the form element Type is a drop-down list with three different choices, as shown in Figure 2
可以对您的表单元素使用19种标准验证类型。
There are 19 standard validation types that come ready to use with your form elements.
应用推荐