You are here

function blog_install in Drupal 7

Implements hook_install().

File

modules/blog/blog.install, line 11
Install, update and uninstall functions for the blog module.

Code

function blog_install() {

  // Ensure the blog node type is available.
  node_types_rebuild();
  $types = node_type_get_types();
  node_add_body_field($types['blog']);
}