function coder_upgrade_path_clear in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/includes/main.inc \coder_upgrade_path_clear()
Clears the contents of a file.
Parameters
string $type: File type.
3 calls to coder_upgrade_path_clear()
- CoderUpgradeUnitTestCase::captureThemeInfo in coder_upgrade/
coder_upgrade.test - Stores the theme registry for core modules and the modules being upgraded.
- coder_upgrade.run.php in coder_upgrade/
scripts/ coder_upgrade.run.php - coder_upgrade_start in coder_upgrade/
includes/ main.inc - Prepares conversion environment and starts conversion loop.
File
- coder_upgrade/
includes/ main.inc, line 749 - Manages application of conversion routines, logging, and patch file creation.
Code
function coder_upgrade_path_clear($type = 'debug') {
file_put_contents(coder_upgrade_path($type), '');
}