drupal_parse_dependency
function drupal_parse_dependency
drupal_parse_dependency($dependency)
Parses a dependency for comparison by drupal_check_incompatibility().
Parameters
$dependency: A dependency string, which specifies a module dependency, and optionally the project it comes from and versions that are supported. Supported formats include:
- 'module'
- 'project:module'
- 'project:module (>=version, version)'
Return value
An associative array with three keys:
- 'name' includes the name of the thing to depend on (e.g. 'foo').
- 'original_version' contains the original version string (which can be used in the UI for reporting incompatibilities).
- 'versio