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 (&$project, $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 327 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 290 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 11 of file download.pm.inc.

References DRUSH_BOOTSTRAP_DRUPAL_ROOT, 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 ( $project,
  $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 254 of file download.pm.inc.

References drush_cache_clear_all(), 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="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</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>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><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:ab35a163fb97c0a4e0668f0e2b7c78559"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="download_8pm_8inc.html#ab35a163fb97c0a4e0668f0e2b7c78559">pm_drush_pm_download_destination_alter</a> (&amp;$project, $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#l00327">327</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#l00290">_pm_download_destination_lookup()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00115">drush_cwd()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00852">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#l00082">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,169,411,215"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1329,257,1457,287"/><area shape="rect" id="node32" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="908,436,993,465"/><area shape="rect" id="node38" href="includes_2environment_8inc.html#a6f651473a044c97c2a17e63e6455d08e" title="drush_drupal_sitewide\l_directory" alt="" coords="660,5,809,51"/><area shape="rect" id="node42" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="261,360,381,389"/><area shape="rect" id="node5" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="884,6,1017,53"/><area shape="rect" id="node13" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="912,231,989,260"/><area shape="rect" id="node19" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="716,125,753,155"/><area shape="rect" id="node22" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="488,177,581,207"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1097,45,1241,75"/><area shape="rect" id="node11" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1296,45,1491,75"/><area shape="rect" id="node16" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1092,180,1247,209"/><area shape="rect" id="node24" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="679,179,791,208"/><area shape="rect" id="node27" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="860,76,1041,105"/><area shape="rect" id="node35" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1105,436,1233,465"/><area shape="rect" id="node44" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="471,439,599,468"/><area shape="rect" id="node47" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="460,385,609,415"/></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#l00290">290</a> of file <a class="el" href="download_8pm_8inc_source.html">download.pm.inc</a>.</p>

<p>References <a class="el" href="includes_2drupal_8inc_source.html#l00077">drush_drupal_major_version()</a>, <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, <a class="el" href="filesystem_8inc_source.html#l00355">drush_mkdir()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p>Referenced by <a class="el" href="download_8pm_8inc_source.html#l00327">_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="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="559,5,692,51"/><area shape="rect" id="node11" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="587,229,664,259"/><area shape="rect" id="node17" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="232,121,325,151"/><area shape="rect" id="node26" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="411,69,448,99"/><area shape="rect" id="node5" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="772,17,916,47"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1004,125,1132,155"/><area shape="rect" id="node9" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="971,17,1165,47"/><area shape="rect" id="node14" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="767,177,921,207"/><area shape="rect" id="node19" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="373,125,485,155"/><area shape="rect" id="node22" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="535,125,716,155"/></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 Drupal core or any project. </p>

<p>Definition at line <a class="el" href="download_8pm_8inc_source.html#l00082">82</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#l00327">_pm_download_destination()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00050">DRUSH_BOOTSTRAP_DRUPAL_ROOT</a>, <a class="el" href="includes_2command_8inc_source.html#l01251">drush_command_invoke_all()</a>, <a class="el" href="includes_2command_8inc_source.html#l01267">drush_command_invoke_all_ref()</a>, <a class="el" href="drush_8inc_source.html#l00375">drush_confirm()</a>, <a class="el" href="filesystem_8inc_source.html#l00126">drush_delete_dir()</a>, <a class="el" href="drush_8inc_source.html#l00767">drush_download_file_name()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01768">drush_find_empty_directories()</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#l01413">drush_log()</a>, <a class="el" href="filesystem_8inc_source.html#l00355">drush_mkdir()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00198">drush_notify_allowed()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00088">drush_notify_command_message()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00108">drush_notify_send()</a>, <a class="el" href="drush_8inc_source.html#l00659">drush_op()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01671">drush_pm_extensions_in_project()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01491">drush_pm_include_version_control()</a>, <a class="el" href="filesystem_8inc_source.html#l00661">drush_scan_directory()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, <a class="el" href="filesystem_8inc_source.html#l00499">drush_tempdir()</a>, <a class="el" href="drush_8inc_source.html#l01885">drush_version_control_reserved_files()</a>, <a class="el" href="output_8inc_source.html#l00145">dt()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00047">package_handler_download_project()</a>, <a class="el" href="git__drupalorg_8inc_source.html#l00181">package_handler_post_download()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01230">pm_parse_arguments()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01243">pm_parse_project_version()</a>, <a class="el" href="updatexml_8inc_source.html#l00041">release_info_fetch()</a>, and <a class="el" href="updatexml_8inc_source.html#l00154">release_info_print_releasenotes()</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,190,380,219"/><area shape="rect" id="node7" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1157,1684,1235,1714"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1543,631,1671,660"/><area shape="rect" id="node14" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="716,1316,809,1346"/><area shape="rect" id="node16" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="921,1136,1033,1166"/><area shape="rect" id="node19" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1105,2300,1287,2330"/><area shape="rect" id="node23" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="959,1522,996,1551"/><area shape="rect" id="node32" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="917,579,1037,608"/><area shape="rect" id="node40" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="209,2402,372,2449"/><area shape="rect" id="node44" href="group__userinput.html#gaa4169b83ff9dc4222af95d376b21268b" title="drush_confirm" alt="" coords="239,450,343,479"/><area shape="rect" id="node53" href="group__filesystemfunctions.html#gabff54c630a451976fc121257f6efd960" title="drush_delete_dir" alt="" coords="232,2472,349,2502"/><area shape="rect" id="node58" href="drush_8inc.html#a6b7589c9e3cd3f683c0ef137e1c30f49" title="drush_download_file_name" alt="" coords="201,1259,380,1288"/><area shape="rect" id="node65" href="pm_8drush_8inc.html#ab63ba263a636da9a21cd05af4c1613af" title="drush_find_empty_directories" alt="" coords="195,2526,387,2555"/><area shape="rect" id="node71" href="notify_8drush_8inc.html#a164c0fa71b4c3c581b887c130da76f6b" title="drush_notify_allowed" alt="" coords="691,479,835,508"/><area shape="rect" id="node74" href="notify_8drush_8inc.html#a17c65f5ac8c57166084cdbd157b28782" title="drush_notify_command\l_message" alt="" coords="899,2292,1056,2338"/><area shape="rect" id="node77" href="notify_8drush_8inc.html#a019c8116bcc63e1577cf6b5dec3ec24e" title="drush_notify_send" alt="" coords="467,782,595,811"/><area shape="rect" id="node93" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="725,2198,800,2227"/><area shape="rect" id="node100" href="pm_8drush_8inc.html#acf732982c7f481e1bfc50db3bd269de9" title="drush_pm_extensions\l_in_project" alt="" coords="216,2036,365,2082"/><area shape="rect" id="node102" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82" title="drush_scan_directory" alt="" coords="457,2198,604,2227"/><area shape="rect" id="node113" href="pm_8drush_8inc.html#a7a7640133c515e06c96d0f4262b98c51" title="drush_pm_include_version\l_control" alt="" coords="203,1513,379,1560"/><area shape="rect" id="node131" href="group__filesystemfunctions.html#ga883d28ed54603b2d268902cec2379804" title="drush_tempdir" alt="" coords="239,1460,343,1490"/><area shape="rect" id="node136" href="drush_8inc.html#aa61cd59315f7a89a8c7df8649f480a31" title="drush_version_control\l_reserved_files" alt="" coords="216,1582,365,1629"/><area shape="rect" id="node141" href="git__drupalorg_8inc.html#a5332feb31d03dabd7e99bb9e8f763ce4" title="package_handler_download\l_project" alt="" coords="200,1088,381,1134"/><area shape="rect" id="node150" href="git__drupalorg_8inc.html#a24cb40954a8234867336586a498d76b2" title="package_handler_post\l_download" alt="" coords="687,942,839,989"/><area shape="rect" id="node155" href="pm_8drush_8inc.html#a34b2e74a73c176eed08207d9bcb4c587" title="pm_parse_arguments" alt="" coords="217,2579,364,2608"/><area shape="rect" id="node157" href="pm_8drush_8inc.html#a66b0def0d14711d5c10884363c8ae1b5" title="pm_parse_project_version" alt="" coords="676,271,849,300"/><area shape="rect" id="node162" href="updatexml_8inc.html#a7fe4c8cdddd122b232c8daf5484444f9" title="release_info_fetch" alt="" coords="699,1796,827,1826"/><area shape="rect" id="node167" href="updatexml_8inc.html#a4c90192cc502c7c05a5b4554c7d50258" title="release_info_print\l_releasenotes" alt="" coords="701,1676,824,1722"/><area shape="rect" id="node5" href="download_8pm_8inc.html#a6fd957d1eb7a2b91bcd4b4662371200a" title="_pm_download_destination\l_lookup" alt="" coords="441,1138,620,1185"/><area shape="rect" id="node26" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1372,134,1457,163"/><area shape="rect" id="node29" href="includes_2environment_8inc.html#a6f651473a044c97c2a17e63e6455d08e" title="drush_drupal_sitewide\l_directory" alt="" coords="456,152,605,198"/><area shape="rect" id="node11" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1337,1136,1492,1166"/><area shape="rect" id="node34" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1132,631,1260,660"/><area shape="rect" id="node37" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1121,527,1271,556"/><area shape="rect" id="node42" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="435,2411,627,2440"/><area shape="rect" id="node46" href="group__outputfunctions.html#ga6dc4aa94bd0a854c564a2538e166c749" title="drush_print_prompt" alt="" coords="464,424,597,454"/><area shape="rect" id="node48" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="720,426,805,455"/><area shape="rect" id="node55" href="group__filesystemfunctions.html#ga7ba5be839cd5d2104eaf9c26da63c97d" title="drush_delete_dir_contents" alt="" coords="444,2472,617,2502"/><area shape="rect" id="node60" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="455,1259,607,1288"/><area shape="rect" id="node80" href="notify_8drush_8inc.html#a1cf454258746f8e8a83c5fa9b9a91426" title="drush_notify_send_audio" alt="" coords="680,839,845,868"/><area shape="rect" id="node87" href="notify_8drush_8inc.html#a671bf218a111ec39d0f0fc2919e64daf" title="drush_notify_send_text" alt="" coords="684,786,841,815"/><area shape="rect" id="node84" href="group__commandwrappers.html#gafd358ceac1286dbdd141ff2b8eb7d556" title="drush_shell_exec" alt="" coords="916,812,1039,842"/><area shape="rect" id="node98" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="905,2172,1049,2218"/><area shape="rect" id="node107" href="group__outputfunctions.html#ga03664ee5326159c3f8e6c97aa93c7981" title="drush_print_pipe" alt="" coords="1356,1779,1473,1808"/><area shape="rect" id="node111" href="pm_8drush_8inc.html#ab0b677f8357246eb16b6c994cb63eaf7" title="drush_pm_cache_project\l_extensions" alt="" coords="448,1976,613,2022"/><area shape="rect" id="node115" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="697,1522,828,1551"/><area shape="rect" id="node124" href="engines_8inc.html#a91df31f18b0a1d05540ccaf85e6d9a88" title="drush_include_engine" alt="" coords="457,1568,604,1598"/><area shape="rect" id="node133" href="group__filesystemfunctions.html#ga5a78fe09f2e16740db898df3237da602" title="drush_trim_path" alt="" coords="473,1414,588,1443"/></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#l00011">11</a> of file <a class="el" href="download_8pm_8inc_source.html">download.pm.inc</a>.</p>

<p>References <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00050">DRUSH_BOOTSTRAP_DRUPAL_ROOT</a>, <a class="el" href="drush_8inc_source.html#l00375">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#l01413">drush_log()</a>, <a class="el" href="filesystem_8inc_source.html#l00355">drush_mkdir()</a>, <a class="el" href="output_8inc_source.html#l00026">drush_print()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, <a class="el" href="context_8inc_source.html#l00591">drush_set_option()</a>, and <a class="el" href="output_8inc_source.html#l00145">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,143,361,172"/><area shape="rect" id="node7" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="649,67,735,96"/><area shape="rect" id="node9" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="851,67,971,96"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1071,299,1199,328"/><area shape="rect" id="node21" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="653,272,731,301"/><area shape="rect" id="node27" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="263,375,356,404"/><area shape="rect" id="node29" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="429,349,541,379"/><area shape="rect" id="node36" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="467,531,504,560"/><area shape="rect" id="node47" href="context_8inc.html#aa4b55e2f6174c8b6efaa8f23a0f9e0af" title="drush_set_option" alt="" coords="249,440,369,469"/><area shape="rect" id="node5" href="group__outputfunctions.html#ga6dc4aa94bd0a854c564a2538e166c749" title="drush_print_prompt" alt="" coords="419,67,552,96"/><area shape="rect" id="node11" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1071,40,1199,69"/><area shape="rect" id="node15" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1060,93,1209,123"/><area shape="rect" id="node24" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="833,324,988,353"/><area shape="rect" id="node32" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="601,376,783,405"/><area shape="rect" id="node38" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="625,530,759,577"/><area shape="rect" id="node40" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="839,535,983,564"/><area shape="rect" id="node43" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1037,535,1232,564"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab35a163fb97c0a4e0668f0e2b7c78559"></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>$project</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 drush 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#l00254">254</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#l00137">drush_cache_clear_all()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="filesystem_8inc_source.html#l00355">drush_mkdir()</a>, and <a class="el" href="filesystem_8inc_source.html#l00661">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_ab35a163fb97c0a4e0668f0e2b7c78559_cgraph.png" border="0" usemap="#download_8pm_8inc_ab35a163fb97c0a4e0668f0e2b7c78559_cgraph" alt=""/></div>
<map name="download_8pm_8inc_ab35a163fb97c0a4e0668f0e2b7c78559_cgraph" id="download_8pm_8inc_ab35a163fb97c0a4e0668f0e2b7c78559_cgraph">
<area shape="rect" id="node3" href="includes_2cache_8inc.html#a320b19400992c01f88bd71db140da5bc" title="drush_cache_clear_all" alt="" coords="417,120,567,149"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1305,283,1433,312"/><area shape="rect" id="node20" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="445,227,539,256"/><area shape="rect" id="node42" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82" title="drush_scan_directory" alt="" coords="221,280,368,309"/><area shape="rect" id="node5" href="includes_2cache_8inc.html#a80d986947415d49a2b3324018a0beb1e" title="_drush_cache_get_object" alt="" coords="616,60,787,89"/><area shape="rect" id="node15" href="includes_2cache_8inc.html#a4338413ce68582b943bb07b81da7af7a" title="drush_cache_get_bins" alt="" coords="625,120,777,149"/><area shape="rect" id="node7" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="867,56,987,85"/><area shape="rect" id="node9" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1081,5,1209,35"/><area shape="rect" id="node13" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1071,59,1220,88"/><area shape="rect" id="node17" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="836,179,1017,208"/><area shape="rect" id="node22" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="645,227,757,256"/><area shape="rect" id="node33" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="683,173,720,203"/><area shape="rect" id="node26" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1068,283,1223,312"/><area shape="rect" id="node29" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="888,333,965,363"/><area shape="rect" id="node35" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="860,109,993,155"/><area shape="rect" id="node37" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1073,169,1217,199"/><area shape="rect" id="node40" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1272,169,1467,199"/><area shape="rect" id="node44" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="455,280,529,309"/><area shape="rect" id="node49" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="629,330,773,377"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 8 2014 09:04:58 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>