You are here

function comment_update_dependencies in Drupal 7

Implements hook_update_dependencies().

File

modules/comment/comment.install, line 82
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;
}