Hi! I am using Views to display some filtered content, and because of easier maintenance I want to install my views as modules. So I've created module that is using views_api hook and code that I am getting by exporting views.
I am interested why that module is creating new content type (with the same name as view). I am also interested how can I use that feature (to control what kind of content type is created...).
So if anyone has some pointers, it would be nice to share
thanks in advance
Mihajlo
Comments
Comment #1
merlinofchaos commentednew content types are created via hook_node_info or through some .install procedure. This isn't something Views can do, so I'm not sure what might be going on. You may need to paste your module code here because I don't think your description will be enough for anyone to answer.
Comment #2
mihha commentedThanks for response! You see I've totally forgot to remove hook_node_info after I've putted creating of content type in install file.
Thanks again.
Mihajlo