function drush_drupal_parse_info_file

8.0.x drupal.inc drush_drupal_parse_info_file($filename)
6.x drupal.inc drush_drupal_parse_info_file($filename)
7.x drupal.inc drush_drupal_parse_info_file($filename)
5.x drupal.inc drush_drupal_parse_info_file($filename)
master drupal.inc drush_drupal_parse_info_file($filename)

Parse Drupal info file format.

Copied with modifications from includes/common.inc.

See also

drupal_parse_info_file

File

includes/drupal.inc, line 172
Utility functions related to Drupal.

Code

function drush_drupal_parse_info_file($filename) {
  if (!file_exists($filename)) {
    return array();
  }

  $data = file_get_contents($filename);
  return _drush_drupal_parse_info_file($data);
}