You are here

function apps_extract_directory in Apps 7

Wrapper for _update_manager_extract_directory().

Since libraries and modules can live in the same location, we need to namespace the types so they don't collide like the colorbox module.

3 calls to apps_extract_directory()
apps_download_batch in ./apps.installer.inc
Setup the download batch process.
apps_install_downloads in ./apps.installer.inc
Move modules from there temp location in to the drupal tree.
apps_profile_install_app_modules in ./apps.profile.inc
Batch process apps install.

File

./apps.installer.inc, line 189
installer.inc hold all of the function used to download apps and thier deps

Code

function apps_extract_directory($type = '') {
  $directory = _update_manager_extract_directory();
  if ($type) {
    $directory .= '/' . $type;
    if (!file_exists($directory)) {
      mkdir($directory);
    }
  }
  return $directory;
}