Changes between Version 28 and Version 29 of faq/gitification


Ignore:
Timestamp:
Jun 9, 2012, 11:33:06 AM (8 years ago)
Author:
Bart
Comment:

parse_ini_file -> drupal_parse_info_file

Legend:

Unmodified
Added
Removed
Modified
  • faq/gitification

    v28 v29  
    261261
    262262=== git_subtree_system_info_alter() ===
     263
     264This function takes a ''.gitinfo'' file and uses Drupal's [http://api.drupal.org/api/drupal/includes!common.inc/function/drupal_parse_info_file/6 drupal_parse_info_file()] to populate the ''$info'' variable through [http://api.drupal.org/api/drupal/developer!hooks!core.php/function/hook_system_info_alter/6 hook_system_info_alter]:
     265
    263266{{{
    264267/**
     
    288291      if (file_exists($gitinfo_filename) && is_readable ($gitinfo_filename)) {
    289292        // Parse the gitinfo file
    290         $gitinfo = parse_ini_file($gitinfo_filename);
     293        $gitinfo = drupal_parse_info_file($gitinfo_filename);
    291294        // Populate $info with data from gitinfo file
    292295        foreach (array_keys($gitinfo) as $key) {