The new module "foo" implements foo_node_info () , where one or more new content types can be defined.
If foo_node_info () defines two types of content, namely the content type “footypea” and the content type “footypeb”, how do one execute hook_form () (what should be the name “hook”?) To configure each form of editing node?
In the drupal example, the name of the new content type is the same as the module name. What happens in the example above when two new types of content are defined by a module?
If the implemented hook_form () function has the form: footypea_form () and footypeb_form ()? (this does not work)
Or should you implement one function foo_form () and inside this create and return an array of $ form with elements $ form ['footypea'] and $ form ['footypeb'], which in turn are arrays of a separate field of the definition form?
source share