Answers:
对于Drupal 7,如果有drush
,则可以要求它提供“字段类型”(包括其小部件)或“字段”(包括字段名称及其关联的“捆绑包”)的列表。
示例输出(干净的Drupal 7)drush field-info fields
为我提供了:
Field name Field type Bundles
comment_body text_long comment_node_page,comment_node_article
body text_with_summary page,article
field_tags taxonomy_term_reference article
field_image image article
输出为drush field-info types
:
Field type Default widget Widgets
file file_generic file_generic
image image_image image_image
list_integer options_select options_select, options_buttons
list_float options_select options_select, options_buttons
list_text options_select options_select, options_buttons
list_boolean options_buttons options_buttons, options_onoff
number_integer number number
number_decimal number number
number_float number number
taxonomy_term_referen options_select options_select,
ce options_buttons,
taxonomy_autocomplete
text text_textfield text_textfield
text_long text_textarea text_textarea
text_with_summary text_textarea_with_sum text_textarea_with_summary
mary
drush field-info types
和drush field-info fields
field_ui
才能看到此页面