Commit afff4edd authored by Gábor Hojtsy's avatar Gábor Hojtsy

#116200 by njivy: initilize node type data before trying to delete a node...

#116200 by njivy: initilize node type data before trying to delete a node type, so we have data about what do we delete
parent f87245c2
......@@ -436,9 +436,8 @@ function node_type_save($info) {
* The machine-readable name of the node type to be deleted.
*/
function node_type_delete($type) {
db_query("DELETE FROM {node_type} WHERE type = '%s'", $type);
$info = node_get_types('type', $type);
db_query("DELETE FROM {node_type} WHERE type = '%s'", $type);
module_invoke_all('node_type', 'delete', $info);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment