Again, typo that should've been fixed.
[mkdru-moved-to-drupal.org.git] / mkdru.install
index 9bdf3a5..4651a03 100644 (file)
@@ -44,7 +44,8 @@ function mkdru_schema() {
 */
 function mkdru_install() {
   // Disable comments by default
-  variable_set('comment_mkdru', COMMENT_NODE_HIDDEN);
+  variable_set('comment_mkdru', defined('COMMENT_NODE_HIDDEN') ? COMMENT_NODE_HIDDEN : NULL);
+
 
   // Default settings
   $settings['title'] = "";
@@ -79,6 +80,7 @@ function mkdru_install() {
 function mkdru_uninstall() {
   // Delete variables
   variable_del('pz2_js_path');
+  variable_del('mkdru_defaults');
   // Clear block visibility
   db_delete('block_node_type')->condition('module', 'mkdru')->execute();
-}
\ No newline at end of file
+}