You are here

function date_restrictions_check_dependencies in Date Restrictions 7

Checks a restriction type dependencies and return missing ones.

Parameters

$dependencies:

2 calls to date_restrictions_check_dependencies()
date_restrictions_allowed_values_date_restrictions_instance_settings_form in modules/allowed_values/date_restrictions_allowed_values.date_restrictions.inc
Implements hook_date_restrictions_instance_settings_form().
date_restrictions_minmax_date_restrictions_instance_settings_form in modules/minmax/date_restrictions_minmax.date_restrictions.inc
Implements hook_date_restrictions_instance_settings_form().

File

./date_restrictions.module, line 255

Code

function date_restrictions_check_dependencies($dependencies) {
  $missing = array();
  foreach ($dependencies as $dep) {
    if (!module_exists($dep)) {
      $missing[] = $dep;
    }
  }
  return $missing;
}