You are here

function clientside_validation_update_7102 in Clientside Validation 7

Same name and namespace in other branches
  1. 7.2 clientside_validation.install \clientside_validation_update_7102()

Dependencies changed, enable the right modules.

File

./clientside_validation.install, line 302

Code

function clientside_validation_update_7102() {
  $dependants = array(
    'clientside_validation_fapi',
    'clientside_validation_field_validation',
    'clientside_validation_html5',
    'clientside_validation_ife',
    'clientside_validation_webform',
  );
  foreach ($dependants as $dependant) {
    if (module_exists($dependant) && !module_exists('clientside_validation_form')) {
      module_enable(array(
        'clientside_validation_form',
      ));
      break;
    }
  }
}