setup() returns without node_type_save() being executed on node types defined by enabled modules in their hook_node_info() (e.g 'blog'). This doesn't happen with modules installed 'in real life' through the UI, since admin/build/modules page callback includes a node_type_rebuild().
Marking as 'critical', since it raises false positive tests failures in #372743: Body and teaser as fields (which currently passes because it includes this fix).
(install profiles seem to have the same issue, BTW : if you add 'blog' to the list of modules in default_profile_modules() and install a fresh drupal, the 'blog' type only appears in the {node_type} table after the first visit to admin/build/modules, which triggers a node_types_rebuild(). This patch doesn't attempt to fix it.)
| Comment | File | Size | Author |
|---|---|---|---|
| setup_rebuild_node_types.patch | 667 bytes | yched |
Comments
Comment #1
catchComment #2
webchickCommitted, but is there a reason why we don't just do a drupal_cache_clear_all() or whatever here and be done with it?