blog.install 404 B

1234567891011121314151617181920212223
  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. }