You are here

function webform_update_dependencies in Webform 7.4

Same name and namespace in other branches
  1. 8.5 includes/webform.install.update.inc \webform_update_dependencies()
  2. 6.x includes/webform.install.update.inc \webform_update_dependencies()

Implements hook_update_dependencies().

File

./webform.install, line 854
Webform module install/schema hooks.

Code

function webform_update_dependencies() {

  // Create the {filter_format} table before trying to use it.
  $dependencies['webform'][7301] = array(
    'filter' => 7000,
  );

  // Create the {file_managed} table before trying to use it.
  $dependencies['webform'][7319] = array(
    'system' => 7034,
  );

  // Create the {file_usage} table before trying to use it.
  $dependencies['webform'][7320] = array(
    'system' => 7059,
  );
  if (module_exists('rules')) {

    // Ensure rules tables and fields exist before trying to use it.
    $dependencies['webform'][7420] = array(
      'rules' => 7213,
    );
  }
  return $dependencies;
}