blog.install

Install, update and uninstall functions for the blog module.

File

modules/blog/blog.install

View source
<?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');
}

Functions

Title Deprecated Summary
blog_install Implements hook_install().
blog_uninstall Implements hook_uninstall().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.