Install, update and uninstall functions for the blog module.

File

modules/blog/blog.install
View source
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the blog module.
  5. */
  6. /**
  7. * Implements hook_install().
  8. */
  9. function blog_install() {
  10. // Ensure the blog node type is available.
  11. node_types_rebuild();
  12. $types = node_type_get_types();
  13. node_add_body_field($types['blog']);
  14. }
  15. /**
  16. * Implements hook_uninstall().
  17. */
  18. function blog_uninstall() {
  19. variable_del('blog_block_count');
  20. }

Functions

Namesort descending Description
blog_install Implements hook_install().
blog_uninstall Implements hook_uninstall().