function nitro_build_info_file in Arctica Nitro 7
Builds an .info file with theme default settings
1 call to nitro_build_info_file()
- nitro_theme_export in includes/
nitro.admin.inc - @todo
File
- ./
nitro.module, line 123 - Module file for Arctica Nitro.
Code
function nitro_build_info_file($array, $prefix = FALSE) {
$info = '';
foreach ($array as $key => $value) {
if (is_array($value)) {
$info .= nitro_build_info_file($value, !$prefix ? $key : "{$prefix}[{$key}]");
}
else {
$info .= $prefix ? "{$prefix}[" . (is_int($key) ? '' : $key) . ']' : $key;
$info .= " = '" . str_replace("'", "\\'", $value) . "'\n";
}
}
return $info;
}