diff --git a/contemplate.module b/contemplate.module index e843e96..afac89d 100644 --- a/contemplate.module +++ b/contemplate.module @@ -900,6 +900,17 @@ function contemplate_features_api() { } /** + * Implementation of hook_node_type + * + * Delete the contemplate template when that node type is deleted + */ +function contemplate_node_type($op, $node_type) { + if($op == 'delete' && $type) { + contemplate_delete($node_type->type); + } +} + +/** * Rewrite of theme_field to output default CCK output into the template. * * @return unknown