You are here

function panopoly_widgets_update_dependencies in Panopoly Widgets 7

Implements hook_update_dependencies().

File

./panopoly_widgets.install, line 96
An installation file for Panopoly Widgets

Code

function panopoly_widgets_update_dependencies() {
  $deps = array();
  $deps['panopoly_widgets'][7005] = array(
    // I think that file_load() in our panopoly_widgets_update_7005() will
    // attempt to use pathauto, which means it's a dependency.
    'panopoly_core' => 7002,
  );
  if (module_exists('linkit')) {
    $deps['panopoly_widgets'][7017] = array(
      // The new 'Link' field depends on Linkit, so we need to make sure that
      // we create it after Linkit has had a chance to update 2.x -> 3.x.
      'linkit' => 7301,
    );
  }
  $deps['panopoly_widgets'][7021] = array(
    // Wait for tablefield to update itself.
    'tablefield' => 7006,
  );
  return $deps;
}