Mercurial > hg > rr-repo
comparison modules/blog/blog.install @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ff03f76ab3fe |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * @file | |
5 * Install, update and uninstall functions for the blog module. | |
6 */ | |
7 | |
8 /** | |
9 * Implements hook_install(). | |
10 */ | |
11 function blog_install() { | |
12 // Ensure the blog node type is available. | |
13 node_types_rebuild(); | |
14 $types = node_type_get_types(); | |
15 node_add_body_field($types['blog']); | |
16 } | |
17 | |
18 /** | |
19 * Implements hook_uninstall(). | |
20 */ | |
21 function blog_uninstall() { | |
22 variable_del('blog_block_count'); | |
23 } |