summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/blog/blog.install
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/blog/blog.install')
-rw-r--r--kolab.org/www/drupal-7.26/modules/blog/blog.install23
1 files changed, 23 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/blog/blog.install b/kolab.org/www/drupal-7.26/modules/blog/blog.install
new file mode 100644
index 0000000..fffb14b
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/blog/blog.install
@@ -0,0 +1,23 @@
+<?php
+
+/**
+ * @file
+ * Install, update and uninstall functions for the blog module.
+ */
+
+/**
+ * Implements hook_install().
+ */
+function blog_install() {
+ // Ensure the blog node type is available.
+ node_types_rebuild();
+ $types = node_type_get_types();
+ node_add_body_field($types['blog']);
+}
+
+/**
+ * Implements hook_uninstall().
+ */
+function blog_uninstall() {
+ variable_del('blog_block_count');
+}