Commit 291c7b8b authored by Dries's avatar Dries
Browse files

- Patch #81757 by neclimdul: Remove non private copy of module_parse_meta_file.

parent 49fa25fb
......@@ -134,30 +134,6 @@ function module_rebuild_cache() {
return $files;
}
/**
* Parse Drupal meta file format.
* Uses ini parser provided by php's parse_ini_file().
* You should not use the meta files to store module specific settings:
* user <code>variable_get()</code> and <code>variable_set()</code> for those.
*
* Files should use the ini format to specify values:
* key = "value"
* key2 = value2
*
* @param $filename
* The file we are parsing. Accepts file with relative or absolute path.
* @return
* The meta data array.
*/
function module_parse_meta_file($filename) {
$metadata = array();
if (file_exists($filename)) {
$metadata = parse_ini_file($filename);
}
return $metadata;
}
/**
* Parse Drupal info file format.
* Uses ini parser provided by php's parse_ini_file().
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment