root / drupal7 / modules / blog / blog.install @ 6eb57d7f
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 |
} |