Drush: commands/pm/download.pm.inc File Reference

  1. 7.x doxygen/html/download_8pm_8inc.html
  2. master doxygen/html/download_8pm_8inc.html
download.pm.inc File Reference

Go to the source code of this file.

Functions

 drush_pm_download_validate ()
 drush_pm_download ()
 pm_drush_pm_download_destination_alter (&$request, $release)
 _pm_download_destination_lookup ($type, $drupal_root, $sitepath, $create=FALSE)
 _pm_download_destination ($type)

Detailed Description

pm-download command implementation.

Definition in file download.pm.inc.

Function Documentation

_pm_download_destination (   $type)

Returns the best destination for a particular download type we can find.

It is based on the project type and drupal and site contexts.

Definition at line 346 of file download.pm.inc.

References _pm_download_destination_lookup(), drush_cwd(), drush_drupal_sitewide_directory(), drush_get_context(), and drush_get_option().

Referenced by drush_pm_download().

Here is the call graph for this function:

Here is the caller graph for this function:

_pm_download_destination_lookup (   $type,
  $drupal_root,
  $sitepath,
  $create = FALSE 
)

Determines a candidate destination directory for a particular site path.

Optionally attempts to create the directory.

Returns
String the candidate destination if it exists.

Definition at line 308 of file download.pm.inc.

References drush_drupal_major_version(), drush_log(), drush_mkdir(), and dt().

Referenced by _pm_download_destination().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_pm_download_validate ( )

Implements drush_hook_COMMAND_validate().

Definition at line 14 of file download.pm.inc.

References drush_confirm(), drush_get_context(), drush_get_option(), drush_log(), drush_mkdir(), drush_print(), drush_set_error(), drush_set_option(), and dt().

Here is the call graph for this function:

pm_drush_pm_download_destination_alter ( $request,
  $release 
)

Implementation of hook_drush_pm_download_destination_alter().

Built-in download-destination-alter hook. This particular version of the hook will move modules that contain only Drush commands to /usr/share/drush/commands if it exists, or $HOME/.drush if the site-wide location does not exist.

Definition at line 271 of file download.pm.inc.

References drush_cache_clear_all(), drush_drupal_major_version(), drush_get_context(), drush_mkdir(), and drush_scan_directory().

Here is the call graph for this function:

File

doxygen/html/download_8pm_8inc.html
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: commands/pm/download.pm.inc File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_afac61274991793aa7e9133a8f4f291e.html">commands</a></li><li class="navelem"><a class="el" href="dir_15591510fc66414792ea8adada328324.html">pm</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">download.pm.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="download_8pm_8inc_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa785bd2402492043b9acaee375c8ceeb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="download_8pm_8inc.html#aa785bd2402492043b9acaee375c8ceeb">drush_pm_download_validate</a> ()</td></tr>
<tr class="memitem:a802dd9a63e5ab3a3a8472d4635d3c662"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662">drush_pm_download</a> ()</td></tr>
<tr class="memitem:ad376bf565703171473ef60d1a723f936"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="download_8pm_8inc.html#ad376bf565703171473ef60d1a723f936">pm_drush_pm_download_destination_alter</a> (&amp;$request, $release)</td></tr>
<tr class="memitem:a6fd957d1eb7a2b91bcd4b4662371200a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="download_8pm_8inc.html#a6fd957d1eb7a2b91bcd4b4662371200a">_pm_download_destination_lookup</a> ($type, $drupal_root, $sitepath, $create=FALSE)</td></tr>
<tr class="memitem:aee000b980768765f95ac1e36ddbb08ab"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="download_8pm_8inc.html#aee000b980768765f95ac1e36ddbb08ab">_pm_download_destination</a> ($type)</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>pm-download command implementation. </p>

<p>Definition in file <a class="el" href="download_8pm_8inc_source.html">download.pm.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="aee000b980768765f95ac1e36ddbb08ab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_pm_download_destination </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the best destination for a particular download type we can find.</p>
<p>It is based on the project type and drupal and site contexts. </p>

<p>Definition at line <a class="el" href="download_8pm_8inc_source.html#l00346">346</a> of file <a class="el" href="download_8pm_8inc_source.html">download.pm.inc</a>.</p>

<p>References <a class="el" href="download_8pm_8inc_source.html#l00308">_pm_download_destination_lookup()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00124">drush_cwd()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00823">drush_drupal_sitewide_directory()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, and <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>.</p>

<p>Referenced by <a class="el" href="download_8pm_8inc_source.html#l00085">drush_pm_download()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="download_8pm_8inc_aee000b980768765f95ac1e36ddbb08ab_cgraph.png" border="0" usemap="#download_8pm_8inc_aee000b980768765f95ac1e36ddbb08ab_cgraph" alt=""/></div>
<map name="download_8pm_8inc_aee000b980768765f95ac1e36ddbb08ab_cgraph" id="download_8pm_8inc_aee000b980768765f95ac1e36ddbb08ab_cgraph">
<area shape="rect" id="node3" href="download_8pm_8inc.html#a6fd957d1eb7a2b91bcd4b4662371200a" title="_pm_download_destination\l_lookup" alt="" coords="232,190,411,237"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1500,292,1628,321"/><area shape="rect" id="node43" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1121,368,1207,397"/><area shape="rect" id="node49" href="includes_2environment_8inc.html#a6f651473a044c97c2a17e63e6455d08e" title="drush_drupal_sitewide\l_directory" alt="" coords="660,301,809,347"/><area shape="rect" id="node53" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="261,447,381,476"/><area shape="rect" id="node5" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="884,266,1017,313"/><area shape="rect" id="node17" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="912,5,989,35"/><area shape="rect" id="node28" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="716,197,753,227"/><area shape="rect" id="node33" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="488,147,581,176"/><area shape="rect" id="node7" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1092,265,1236,295"/><area shape="rect" id="node11" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1285,213,1451,243"/><area shape="rect" id="node13" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1513,109,1615,139"/><area shape="rect" id="node15" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1679,109,1812,139"/><area shape="rect" id="node19" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1121,5,1207,35"/><area shape="rect" id="node22" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1320,5,1416,35"/><area shape="rect" id="node25" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1291,109,1445,139"/><area shape="rect" id="node31" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="881,213,1020,243"/><area shape="rect" id="node35" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="679,109,791,139"/><area shape="rect" id="node38" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="860,109,1041,139"/><area shape="rect" id="node46" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1304,317,1432,347"/><area shape="rect" id="node55" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="471,525,599,555"/><area shape="rect" id="node58" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="460,472,609,501"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="download_8pm_8inc_aee000b980768765f95ac1e36ddbb08ab_icgraph.png" border="0" usemap="#download_8pm_8inc_aee000b980768765f95ac1e36ddbb08ab_icgraph" alt=""/></div>
<map name="download_8pm_8inc_aee000b980768765f95ac1e36ddbb08ab_icgraph" id="download_8pm_8inc_aee000b980768765f95ac1e36ddbb08ab_icgraph">
<area shape="rect" id="node3" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="232,5,373,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6fd957d1eb7a2b91bcd4b4662371200a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_pm_download_destination_lookup </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$drupal_root</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$sitepath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$create</em> = <code>FALSE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determines a candidate destination directory for a particular site path.</p>
<p>Optionally attempts to create the directory.</p>
<dl class="section return"><dt>Returns</dt><dd>String the candidate destination if it exists. </dd></dl>

<p>Definition at line <a class="el" href="download_8pm_8inc_source.html#l00308">308</a> of file <a class="el" href="download_8pm_8inc_source.html">download.pm.inc</a>.</p>

<p>References <a class="el" href="drupal_8inc_source.html#l00062">drush_drupal_major_version()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, <a class="el" href="filesystem_8inc_source.html#l00360">drush_mkdir()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p>Referenced by <a class="el" href="download_8pm_8inc_source.html#l00346">_pm_download_destination()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="download_8pm_8inc_a6fd957d1eb7a2b91bcd4b4662371200a_cgraph.png" border="0" usemap="#download_8pm_8inc_a6fd957d1eb7a2b91bcd4b4662371200a_cgraph" alt=""/></div>
<map name="download_8pm_8inc_a6fd957d1eb7a2b91bcd4b4662371200a_cgraph" id="download_8pm_8inc_a6fd957d1eb7a2b91bcd4b4662371200a_cgraph">
<area shape="rect" id="node3" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="559,5,692,51"/><area shape="rect" id="node15" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="587,137,664,167"/><area shape="rect" id="node26" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="232,97,325,127"/><area shape="rect" id="node35" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="411,61,448,91"/><area shape="rect" id="node5" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="767,24,911,53"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1175,207,1303,236"/><area shape="rect" id="node9" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="960,24,1125,53"/><area shape="rect" id="node11" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1188,51,1289,80"/><area shape="rect" id="node13" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1353,51,1487,80"/><area shape="rect" id="node17" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="796,155,881,184"/><area shape="rect" id="node20" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="995,77,1091,107"/><area shape="rect" id="node23" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="965,232,1120,261"/><area shape="rect" id="node28" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="373,201,485,231"/><area shape="rect" id="node31" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="535,191,716,220"/><area shape="rect" id="node38" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="556,75,695,104"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="download_8pm_8inc_a6fd957d1eb7a2b91bcd4b4662371200a_icgraph.png" border="0" usemap="#download_8pm_8inc_a6fd957d1eb7a2b91bcd4b4662371200a_icgraph" alt=""/></div>
<map name="download_8pm_8inc_a6fd957d1eb7a2b91bcd4b4662371200a_icgraph" id="download_8pm_8inc_a6fd957d1eb7a2b91bcd4b4662371200a_icgraph">
<area shape="rect" id="node3" href="download_8pm_8inc.html#aee000b980768765f95ac1e36ddbb08ab" title="_pm_download_destination" alt="" coords="232,13,411,43"/><area shape="rect" id="node5" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="459,13,600,43"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a802dd9a63e5ab3a3a8472d4635d3c662"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_pm_download </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Command callback. Download <a class="el" href="namespaceDrupal.html">Drupal</a> core or any project. </p>

<p>Definition at line <a class="el" href="download_8pm_8inc_source.html#l00085">85</a> of file <a class="el" href="download_8pm_8inc_source.html">download.pm.inc</a>.</p>

<p>References <a class="el" href="download_8pm_8inc_source.html#l00346">_pm_download_destination()</a>, <a class="el" href="command_8inc_source.html#l01471">drush_command_invoke_all()</a>, <a class="el" href="command_8inc_source.html#l01487">drush_command_invoke_all_ref()</a>, <a class="el" href="drush_8inc_source.html#l00395">drush_confirm()</a>, <a class="el" href="filesystem_8inc_source.html#l00127">drush_delete_dir()</a>, <a class="el" href="pm_8drush_8inc_source.html#l02170">drush_find_empty_directories()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="engines_8inc_source.html#l00541">drush_get_engine()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00658">drush_get_projects()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, <a class="el" href="filesystem_8inc_source.html#l00360">drush_mkdir()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00205">drush_notify_allowed()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00095">drush_notify_command_message()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00115">drush_notify_send()</a>, <a class="el" href="drush_8inc_source.html#l00678">drush_op()</a>, <a class="el" href="pm_8drush_8inc_source.html#l02073">drush_pm_extensions_in_project()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01891">drush_pm_include_version_control()</a>, <a class="el" href="filesystem_8inc_source.html#l00678">drush_scan_directory()</a>, <a class="el" href="drush_8inc_source.html#l01525">drush_set_error()</a>, <a class="el" href="drush_8inc_source.html#l01692">drush_version_control_reserved_files()</a>, <a class="el" href="output_8inc_source.html#l00149">dt()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00049">package_handler_download_project()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00185">package_handler_post_download()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01420">pm_parse_arguments()</a>, and <a class="el" href="pm_8drush_8inc_source.html#l01657">pm_parse_request()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="download_8pm_8inc_a802dd9a63e5ab3a3a8472d4635d3c662_cgraph.png" border="0" usemap="#download_8pm_8inc_a802dd9a63e5ab3a3a8472d4635d3c662_cgraph" alt=""/></div>
<map name="download_8pm_8inc_a802dd9a63e5ab3a3a8472d4635d3c662_cgraph" id="download_8pm_8inc_a802dd9a63e5ab3a3a8472d4635d3c662_cgraph">
<area shape="rect" id="node3" href="download_8pm_8inc.html#aee000b980768765f95ac1e36ddbb08ab" title="_pm_download_destination" alt="" coords="201,470,380,499"/><area shape="rect" id="node7" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1184,1297,1261,1326"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1559,757,1687,786"/><area shape="rect" id="node13" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="729,937,823,966"/><area shape="rect" id="node15" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="948,881,1060,910"/><area shape="rect" id="node18" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1132,1998,1313,2027"/><area shape="rect" id="node21" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="985,1142,1023,1171"/><area shape="rect" id="node30" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="944,329,1064,358"/><area shape="rect" id="node38" href="command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="209,2091,372,2137"/><area shape="rect" id="node42" href="group__userinput.html#gaa4169b83ff9dc4222af95d376b21268b" title="drush_confirm" alt="" coords="239,175,343,205"/><area shape="rect" id="node51" href="group__filesystemfunctions.html#gabff54c630a451976fc121257f6efd960" title="drush_delete_dir" alt="" coords="232,2161,349,2190"/><area shape="rect" id="node56" href="pm_8drush_8inc.html#ab63ba263a636da9a21cd05af4c1613af" title="drush_find_empty_directories" alt="" coords="195,2214,387,2243"/><area shape="rect" id="node59" href="engines_8inc.html#a34ff5c6bb43688e04d0647eddf48d553" title="drush_get_engine" alt="" coords="1161,1939,1284,1969"/><area shape="rect" id="node63" href="group__extensions.html#gadf92772f6521fbc75a53ccec7e5e007e" title="drush_get_projects" alt="" coords="465,1601,596,1630"/><area shape="rect" id="node88" href="notify_8drush_8inc.html#a164c0fa71b4c3c581b887c130da76f6b" title="drush_notify_allowed" alt="" coords="219,325,363,354"/><area shape="rect" id="node91" href="notify_8drush_8inc.html#a17c65f5ac8c57166084cdbd157b28782" title="drush_notify_command\l_message" alt="" coords="925,1989,1083,2036"/><area shape="rect" id="node94" href="notify_8drush_8inc.html#a019c8116bcc63e1577cf6b5dec3ec24e" title="drush_notify_send" alt="" coords="467,662,595,691"/><area shape="rect" id="node107" href="drush_8inc.html#acebe9ed4e4825e6d33ab8dff2157b676" title="drush_op" alt="" coords="739,1313,813,1342"/><area shape="rect" id="node114" href="pm_8drush_8inc.html#acf732982c7f481e1bfc50db3bd269de9" title="drush_pm_extensions\l_in_project" alt="" coords="216,1363,365,1409"/><area shape="rect" id="node116" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82" title="drush_scan_directory" alt="" coords="457,1433,604,1462"/><area shape="rect" id="node127" href="pm_8drush_8inc.html#a7a7640133c515e06c96d0f4262b98c51" title="drush_pm_include_version\l_control" alt="" coords="688,1091,864,1137"/><area shape="rect" id="node135" href="drush_8inc.html#aa61cd59315f7a89a8c7df8649f480a31" title="drush_version_control\l_reserved_files" alt="" coords="216,2267,365,2313"/><area shape="rect" id="node138" href="git__drupalorg_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="440,768,621,815"/><area shape="rect" id="node145" href="git__drupalorg_8inc.html#a24cb40954a8234867336586a498d76b2" title="package_handler_post\l_download" alt="" coords="700,816,852,863"/><area shape="rect" id="node150" href="pm_8drush_8inc.html#a34b2e74a73c176eed08207d9bcb4c587" title="pm_parse_arguments" alt="" coords="217,2337,364,2366"/><area shape="rect" id="node152" href="pm_8drush_8inc.html#a8db73b8d3d5ca0b0ab31dc9976d5c5d5" title="pm_parse_request" alt="" coords="227,2390,355,2419"/><area shape="rect" id="node5" href="download_8pm_8inc.html#a6fd957d1eb7a2b91bcd4b4662371200a" title="_pm_download_destination\l_lookup" alt="" coords="441,971,620,1017"/><area shape="rect" id="node24" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1393,430,1479,459"/><area shape="rect" id="node27" href="includes_2environment_8inc.html#a6f651473a044c97c2a17e63e6455d08e" title="drush_drupal_sitewide\l_directory" alt="" coords="456,491,605,537"/><area shape="rect" id="node9" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1393,1279,1479,1309"/><area shape="rect" id="node32" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1159,225,1287,254"/><area shape="rect" id="node35" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1148,278,1297,307"/><area shape="rect" id="node40" href="command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="435,2099,627,2129"/><area shape="rect" id="node44" href="group__outputfunctions.html#ga6dc4aa94bd0a854c564a2538e166c749" title="drush_print_prompt" alt="" coords="464,201,597,230"/><area shape="rect" id="node46" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="733,201,819,230"/><area shape="rect" id="node53" href="group__filesystemfunctions.html#ga7ba5be839cd5d2104eaf9c26da63c97d" title="drush_delete_dir_contents" alt="" coords="444,2161,617,2190"/><area shape="rect" id="node65" href="includes_2environment_8inc.html#a2f6ea049bc3f5361815aafe6f44a535d" title="drush_get_extensions" alt="" coords="701,1467,851,1497"/><area shape="rect" id="node69" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1364,1583,1508,1613"/><area shape="rect" id="node72" href="includes_2environment_8inc.html#a317a284967256e1c0452a13462388c21" title="drush_extension_get_name" alt="" coords="685,1678,867,1707"/><area shape="rect" id="node74" href="includes_2environment_8inc.html#a62a951f395505ed28ea3f0a5a108419c" title="drush_extension_get_path" alt="" coords="689,1731,863,1761"/><area shape="rect" id="node76" href="commands_2core_2drupal_2environment_8inc.html#a643d851fd8dc63ea2ce8cf67aa33098c" title="drush_module_exists" alt="" coords="704,1785,848,1814"/><area shape="rect" id="node80" href="includes_2environment_8inc.html#a5536e4ffcf1cdf1f176e15a3aed81af7" title="drush_extension_get_type" alt="" coords="689,1574,863,1603"/><area shape="rect" id="node82" href="group__extensions.html#ga1d2b7b533a453be8eac7d6fd78512ddb" title="_drush_pm_find_common_path" alt="" coords="675,1521,877,1550"/><area shape="rect" id="node97" href="notify_8drush_8inc.html#a1cf454258746f8e8a83c5fa9b9a91426" title="drush_notify_send_audio" alt="" coords="693,662,859,691"/><area shape="rect" id="node102" href="notify_8drush_8inc.html#a671bf218a111ec39d0f0fc2919e64daf" title="drush_notify_send_text" alt="" coords="697,609,855,638"/><area shape="rect" id="node112" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="932,1245,1076,1292"/><area shape="rect" id="node121" href="group__outputfunctions.html#ga03664ee5326159c3f8e6c97aa93c7981" title="drush_print_pipe" alt="" coords="1377,1762,1495,1791"/><area shape="rect" id="node125" href="pm_8drush_8inc.html#ab0b677f8357246eb16b6c994cb63eaf7" title="drush_pm_cache_project\l_extensions" alt="" coords="448,1363,613,1409"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa785bd2402492043b9acaee375c8ceeb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_pm_download_validate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Implements <a class="el" href="group__hooks.html#gac061d664b056b69fdf8df08fa7d3a455">drush_hook_COMMAND_validate()</a>. </p>

<p>Definition at line <a class="el" href="download_8pm_8inc_source.html#l00014">14</a> of file <a class="el" href="download_8pm_8inc_source.html">download.pm.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l00395">drush_confirm()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, <a class="el" href="filesystem_8inc_source.html#l00360">drush_mkdir()</a>, <a class="el" href="output_8inc_source.html#l00028">drush_print()</a>, <a class="el" href="drush_8inc_source.html#l01525">drush_set_error()</a>, <a class="el" href="context_8inc_source.html#l00595">drush_set_option()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="download_8pm_8inc_aa785bd2402492043b9acaee375c8ceeb_cgraph.png" border="0" usemap="#download_8pm_8inc_aa785bd2402492043b9acaee375c8ceeb_cgraph" alt=""/></div>
<map name="download_8pm_8inc_aa785bd2402492043b9acaee375c8ceeb_cgraph" id="download_8pm_8inc_aa785bd2402492043b9acaee375c8ceeb_cgraph">
<area shape="rect" id="node3" href="group__userinput.html#gaa4169b83ff9dc4222af95d376b21268b" title="drush_confirm" alt="" coords="257,83,361,112"/><area shape="rect" id="node7" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="649,32,735,61"/><area shape="rect" id="node9" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="845,59,965,88"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1241,324,1369,353"/><area shape="rect" id="node21" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="653,592,731,621"/><area shape="rect" id="node35" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="263,367,356,396"/><area shape="rect" id="node37" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="429,461,541,491"/><area shape="rect" id="node44" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="467,341,504,371"/><area shape="rect" id="node58" href="context_8inc.html#aa4b55e2f6174c8b6efaa8f23a0f9e0af" title="drush_set_option" alt="" coords="249,212,369,241"/><area shape="rect" id="node5" href="group__outputfunctions.html#ga6dc4aa94bd0a854c564a2538e166c749" title="drush_print_prompt" alt="" coords="419,57,552,87"/><area shape="rect" id="node11" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1045,59,1173,88"/><area shape="rect" id="node15" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1035,5,1184,35"/><area shape="rect" id="node23" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="863,592,948,621"/><area shape="rect" id="node26" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1061,644,1157,673"/><area shape="rect" id="node32" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1032,540,1187,569"/><area shape="rect" id="node28" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1255,565,1356,595"/><area shape="rect" id="node30" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1420,565,1553,595"/><area shape="rect" id="node40" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="601,488,783,517"/><area shape="rect" id="node46" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="625,367,759,414"/><area shape="rect" id="node54" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="623,315,761,344"/><area shape="rect" id="node48" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="833,436,977,465"/><area shape="rect" id="node51" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1027,487,1192,516"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad376bf565703171473ef60d1a723f936"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pm_drush_pm_download_destination_alter </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$request</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$release</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Implementation of <a class="el" href="group__hooks.html#ga2db1b61c4e34fd8b98620606f86e7b6f">hook_drush_pm_download_destination_alter()</a>.</p>
<p>Built-in download-destination-alter hook. This particular version of the hook will move modules that contain only <a class="el" href="classDrush.html">Drush</a> commands to /usr/share/drush/commands if it exists, or $HOME/.drush if the site-wide location does not exist. </p>

<p>Definition at line <a class="el" href="download_8pm_8inc_source.html#l00271">271</a> of file <a class="el" href="download_8pm_8inc_source.html">download.pm.inc</a>.</p>

<p>References <a class="el" href="includes_2cache_8inc_source.html#l00139">drush_cache_clear_all()</a>, <a class="el" href="drupal_8inc_source.html#l00062">drush_drupal_major_version()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="filesystem_8inc_source.html#l00360">drush_mkdir()</a>, and <a class="el" href="filesystem_8inc_source.html#l00678">drush_scan_directory()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="download_8pm_8inc_ad376bf565703171473ef60d1a723f936_cgraph.png" border="0" usemap="#download_8pm_8inc_ad376bf565703171473ef60d1a723f936_cgraph" alt=""/></div>
<map name="download_8pm_8inc_ad376bf565703171473ef60d1a723f936_cgraph" id="download_8pm_8inc_ad376bf565703171473ef60d1a723f936_cgraph">
<area shape="rect" id="node3" href="includes_2cache_8inc.html#a320b19400992c01f88bd71db140da5bc" title="drush_cache_clear_all" alt="" coords="223,111,372,140"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1296,265,1424,295"/><area shape="rect" id="node19" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="881,473,1015,519"/><area shape="rect" id="node31" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="251,277,344,307"/><area shape="rect" id="node54" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82" title="drush_scan_directory" alt="" coords="224,344,371,373"/><area shape="rect" id="node5" href="includes_2cache_8inc.html#a80d986947415d49a2b3324018a0beb1e" title="_drush_cache_get_object" alt="" coords="421,57,592,87"/><area shape="rect" id="node15" href="includes_2cache_8inc.html#a4338413ce68582b943bb07b81da7af7a" title="drush_cache_get_bins" alt="" coords="431,111,583,140"/><area shape="rect" id="node7" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="672,57,792,87"/><area shape="rect" id="node9" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="884,59,1012,88"/><area shape="rect" id="node13" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="873,5,1023,35"/><area shape="rect" id="node17" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="641,111,823,140"/><area shape="rect" id="node21" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1079,473,1223,503"/><area shape="rect" id="node24" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1277,460,1443,489"/><area shape="rect" id="node26" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1492,421,1593,451"/><area shape="rect" id="node28" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1644,421,1777,451"/><area shape="rect" id="node33" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="451,264,563,293"/><area shape="rect" id="node49" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="713,369,751,399"/><area shape="rect" id="node37" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1073,265,1228,295"/><area shape="rect" id="node40" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="693,316,771,345"/><area shape="rect" id="node42" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="905,316,991,345"/><area shape="rect" id="node45" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1312,381,1408,411"/><area shape="rect" id="node52" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="879,369,1017,399"/><area shape="rect" id="node56" href="drush_8inc.html#acebe9ed4e4825e6d33ab8dff2157b676" title="drush_op" alt="" coords="469,369,544,399"/><area shape="rect" id="node61" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="660,473,804,519"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Nov 2 2016 07:29:27 for Drush by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>