You are here

function _check_for_configuration_conflicts in Glossify 6.3

Helper function that returns the configurations with the same to-content-types

File

./glossify.module, line 991

Code

function _check_for_configuration_conflicts($configurations, $content_types, $method) {
  foreach ($configurations as $configuration) {
    if (count(array_intersect($content_types, $configuration['to'])) > 0) {
      if ($configuration['methods'][$method]) {
        return FALSE;
      }
    }
  }
  return TRUE;
}