_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

▾ 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_confirm_update_form_submit in modules/update/update.manager.inc
Submit handler for the form to confirm that an update should continue.
update_manager_install_form_submit in modules/update/update.manager.inc
Handle form submission when installing new projects via the update manager.

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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.