function d3_file_str_replace in d3.js 7
1 string reference to 'd3_file_str_replace'
- drush_d3 in ./
d3.drush.inc - Create a d3 custom library from the template.
File
- ./
d3.drush.inc, line 67 - Contains functionality needed for drush integration.
Code
function d3_file_str_replace($file_path, $find, $replace) {
$file_path = drush_normalize_path($file_path);
$contents = file_get_contents($file_path);
$contents = str_replace($find, $replace, $contents);
file_put_contents($file_path, $contents);
}