cms/drupal/modules/blog/blog.install
author ymh <ymh.work@gmail.com>
Mon, 19 Mar 2018 16:00:44 +0100
changeset 570 cdf0cb7bf073
parent 541 e756a8c72c3d
permissions -rwxr-xr-x
update drupal cms after security audit

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