Archive

Archive for the ‘form api’ Category

Drupal 7 Gotchas- Title not visible in “Add form” page AND Custom Node Not Visible in the “Content Types Edit Structure” page.

August 25, 2010 3 comments

So I had implemented hook_node_info wherein I had specified the “has_title” as TRUE, but inspite of that I could not see the Title Field in the “add node” form and also I could not see my custom content type listed in the content types “edit structure” page. This being despite the fact that I had also implemented hook_node_form

After much ado I realized that I had specified a “base” in hook_node_info which was different from my module name. But I had implemented hook_node_form using my module name and NOT the base name.

Therein lied my fault.

Categories: drupal, drupal 7, field api, form api Tags: