Misses a call to node_types_rebuild() if we want to be able to actually use the content type within the request..
| Comment | File | Size | Author |
|---|---|---|---|
| drupal_test_case.php_.patch | 528 bytes | yched |
Misses a call to node_types_rebuild() if we want to be able to actually use the content type within the request..
| Comment | File | Size | Author |
|---|---|---|---|
| drupal_test_case.php_.patch | 528 bytes | yched |
Comments
Comment #1
Rok Žlender commentedAre you sure? This is what I used to test drupalCreateContentType
And it created node with newly created node type. Or did you have some other use case in mind?
Comment #2
yched commentedIt will work, if you don't have, say, CCK enabled :-)
Calls to node_get_types('types') won't return your newly created type - meaning, the type is unknown to the outside world.
CCK then raises errors trying to handle saving a node which node type is reported not to exist.
Comment #3
Rok Žlender commentedOK I believe you :), committed.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.