You are here

function feeds_ex_registry_files_alter in Feeds extensible parsers 7.2

Same name and namespace in other branches
  1. 7 feeds_ex.module \feeds_ex_registry_files_alter()

Implements hook_registry_files_alter().

Add JMESPath tests if they are supported.

File

./feeds_ex.module, line 49
A Feeds framework used to create extensible parsers.

Code

function feeds_ex_registry_files_alter(array &$files, array $modules) {
  if (version_compare(PHP_VERSION, '5.4.0', '<')) {
    return;
  }
  if (!feeds_ex_library_path('jmespath.php', 'vendor/autoload.php')) {
    return;
  }
  $path = drupal_get_path('module', 'feeds_ex');
  $files[$path . '/src/Tests/FeedsExJmesPath.test'] = array(
    'module' => 'feeds_ex',
    'weight' => 1,
  );
  $files[$path . '/src/Tests/FeedsExJmesPathLines.test'] = array(
    'module' => 'feeds_ex',
    'weight' => 1,
  );
}