_update_manager_extract_directory

Versions
mediamosa-21
_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

▾ 3 functions call _update_manager_extract_directory()

update_manager_batch_project_get in modules/update/update.manager.inc
Batch operation: download, unpack, and verify a project.
update_manager_install_form_submit in modules/update/update.manager.inc
Handle form submission when installing new projects via the update manager.
update_manager_update_ready_form_submit in modules/update/update.manager.inc
Submit handler for the form to confirm that an update should continue.

Code

modules/update/update.manager.inc, line 635

<?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;
}
?>