Changes between Version 28 and Version 29 of faq/gitification
- Timestamp:
- Jun 9, 2012, 3:33:06 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
faq/gitification
v28 v29 261 261 262 262 === git_subtree_system_info_alter() === 263 264 This 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 263 266 {{{ 264 267 /** … … 288 291 if (file_exists($gitinfo_filename) && is_readable ($gitinfo_filename)) { 289 292 // Parse the gitinfo file 290 $gitinfo = parse_ini_file($gitinfo_filename);293 $gitinfo = drupal_parse_info_file($gitinfo_filename); 291 294 // Populate $info with data from gitinfo file 292 295 foreach (array_keys($gitinfo) as $key) {