X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.install;h=4651a034408029487c3ac19931a92f5464306ed8;hb=f95e7a4268e7e62fe1ba36b120e0b58108d4c5a6;hp=9bdf3a50830788a882616e49c63b5ea5b0ddc78f;hpb=60cbb36f67468e16adad80eaa55f436798eb56ea;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.install b/mkdru.install index 9bdf3a5..4651a03 100644 --- a/mkdru.install +++ b/mkdru.install @@ -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 +}