function tripal_example_update_dependencies

2.x tripal_example.install tripal_example_update_dependencies()

Implementation of hook_update_dependencies().

It specifies a list of other modules whose updates must be run prior to this one. It also ensures the the Tripal API is in scope for site upgrades when tripal_core is disabled.

File

tripal_example/tripal_example.install, line 599
Installation of the example module

Code

function tripal_example_update_dependencies() {

  $dependencies = array();

  // EXPLANATION: here we can specify which modules must be updated prior to
  // applying the updates in this module. This is useful because it prevents
  // updates from being executed out of order. The following example code shows
  // that the 'tripal_example' module update number 7200 must be executed after
  // the 'tripal_cv' module's 7200 update.
  $dependencies['tripal_example'][7200] = array(
    'tripal_cv' => 7200
  );

  return $dependencies;
}