| 7 update.module | _update_manager_cache_directory($create = TRUE) |
| 8 update.module | _update_manager_cache_directory($create = TRUE) |
Return the directory where update archive files should be cached.
Parameters
$create: If TRUE, attempt to create the directory if it does not already exist.
Return value
The full path to the temporary directory where update file archives should be cached.
2 calls to _update_manager_cache_directory()
File
- modules/
update/ update.module, line 910 - The "Update status" module checks for available updates of Drupal core and any installed contributed modules and themes. It warns site administrators if newer releases are available via the system status report (admin/reports/status), the…
Code
function _update_manager_cache_directory($create = TRUE) {
$directory = &drupal_static(__FUNCTION__, '');
if (empty($directory)) {
$directory = 'temporary://update-cache-' . _update_manager_unique_identifier();
if ($create && !file_exists($directory)) {
mkdir($directory);
}
}
return $directory;
}
Login or register to post comments