_update_manager_extract_directory
- Versions
- 7
_update_manager_extract_directory()
Return the directory where update archive files should be extracted.
If the directory does not already exist, attempt to create it.
Return value
The full path to the temporary directory where update file archives should be extracted.
Related topics
Code
modules/update/update.manager.inc, line 653
<?php
function _update_manager_extract_directory() {
$directory = &drupal_static(__FUNCTION__, '');
if (empty($directory)) {
$directory = DRUPAL_ROOT . '/' . file_directory_path('temporary') . '/update-extraction';
if (!file_exists($directory)) {
mkdir($directory);
}
}
return $directory;
}
?>Login or register to post comments 