mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2024-11-14 12:13:26 +00:00
24 lines
404 B
Text
24 lines
404 B
Text
|
<?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');
|
||
|
}
|