开发者

What are the default field types available when calling field_create_field? [closed]

开发者 https://www.devze.com 2023-02-07 20:56 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

Improve this question

I have a Drupal 7 module that creates a custom node type. It's working, but I need to add a field to the nodes to track how many times they get "used."

开发者_运维百科Where can I find the different field types I'm able to create when using field_create_field? All I've found reference to are "text" and "image." Is there an option for a "numeric" field type?


I found the answer by searching api.drupal.org for _field_info. From there, I found number_field_info, which includes a type of number_integer.

0

精彩评论

暂无评论...
验证码 换一张
取 消