function feeds_ex_registry_files_alter in Feeds extensible parsers 7
Same name and namespace in other branches
- 7.2 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 54 - 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', '<') || !module_exists('simpletest')) {
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,
);
}