comment_update_dependencies

function comment_update_dependencies

comment_update_dependencies()

Implements hook_update_dependencies().

File

modules/comment/comment.install, line 85
Install, update and uninstall functions for the comment module.

Code

function comment_update_dependencies() {
  // comment_update_7005() creates the comment body field and therefore must
  // run after all Field modules have been enabled, which happens in
  // system_update_7027().
  $dependencies['comment'][7005] = array(
    'system' => 7027,
  );

  // comment_update_7006() needs to query the {filter_format} table to get a
  // list of existing text formats, so it must run after filter_update_7000(),
  // which creates that table.
  $dependencies['comment'][7006] = array(
    'filter' => 7000,
  );

  return $dependencies;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!comment!comment.install/function/comment_update_dependencies/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部