Drush: commands/core/usage.drush.inc File Reference

  1. 7.x doxygen/html/usage_8drush_8inc.html
  2. master doxygen/html/usage_8drush_8inc.html
usage.drush.inc File Reference

Go to the source code of this file.

Functions

 usage_drush_command ()
 usage_drush_exit ()
 drush_usage_send ()
 drush_usage_show ()
 _drush_usage_get_file ($required=FALSE)
 _drush_usage_log ($command, $file)
 _drush_usage_mongolab ($file, $min_size_to_send)

Detailed Description

Send scrubbed usage data to drush. Omits arguments and option values in order to assure that no sensitive data is shared. See http://drupal.org/node/1246738.

Definition in file usage.drush.inc.

Function Documentation

_drush_usage_get_file (   $required = FALSE)

Returns path to usage file.

Definition at line 103 of file usage.drush.inc.

References drush_directory_cache().

Referenced by drush_usage_send(), drush_usage_show(), and usage_drush_exit().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_usage_send ( )

Set option to send usage to Mongolab.

See usage_drush_exit() for more information.

Definition at line 68 of file usage.drush.inc.

References _drush_usage_get_file(), drush_print(), drush_set_error(), drush_set_option(), and dt().

Here is the call graph for this function:

drush_usage_show ( )

Displays usage file.

Definition at line 83 of file usage.drush.inc.

References _drush_usage_get_file(), drush_print(), drush_set_error(), and dt().

Here is the call graph for this function:

usage_drush_command ( )

To send usage data, add the following to a .drushrc.php file: $options['drush_usage_log'] = TRUE; $options['drush_usage_send'] = TRUE; $options['drush_usage_size'] = 51200;

Definition at line 18 of file usage.drush.inc.

usage_drush_exit ( )

Log and/or send usage data to Mongolab.

An organization can implement own hook_drush_exit() to send data to a different endpoint.

Definition at line 50 of file usage.drush.inc.

References _drush_usage_get_file(), drush_get_command(), drush_get_context(), and drush_get_option().

Here is the call graph for this function:

File

doxygen/html/usage_8drush_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/core/usage.drush.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_5762b63965e3a68a35f77c23b4dd4668.html">core</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">usage.drush.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="usage_8drush_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:aa3c21e2eb03c01ddabd57ecbe5a55317"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="usage_8drush_8inc.html#aa3c21e2eb03c01ddabd57ecbe5a55317">usage_drush_command</a> ()</td></tr>
<tr class="memitem:a0a90320da8f9df59381caaf3338d60cf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="usage_8drush_8inc.html#a0a90320da8f9df59381caaf3338d60cf">usage_drush_exit</a> ()</td></tr>
<tr class="memitem:a315af941461f0a0d3b4ec1c5063d94ac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="usage_8drush_8inc.html#a315af941461f0a0d3b4ec1c5063d94ac">drush_usage_send</a> ()</td></tr>
<tr class="memitem:ab9ed81c63a7f92ea9336314205780bd0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="usage_8drush_8inc.html#ab9ed81c63a7f92ea9336314205780bd0">drush_usage_show</a> ()</td></tr>
<tr class="memitem:ad52add4a2eb3f87d4d284409b2003039"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="usage_8drush_8inc.html#ad52add4a2eb3f87d4d284409b2003039">_drush_usage_get_file</a> ($required=FALSE)</td></tr>
<tr class="memitem:aa4698d520d6a2619253b673a658e76a1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa4698d520d6a2619253b673a658e76a1"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>_drush_usage_log</b> ($command, $file)</td></tr>
<tr class="memitem:ac10cb3202db44affce8abfa391af7d74"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac10cb3202db44affce8abfa391af7d74"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>_drush_usage_mongolab</b> ($file, $min_size_to_send)</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Send scrubbed usage data to drush. Omits arguments and option values in order to assure that no sensitive data is shared. See <a href="http://drupal.org/node/1246738">http://drupal.org/node/1246738</a>. </p>

<p>Definition in file <a class="el" href="usage_8drush_8inc_source.html">usage.drush.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="ad52add4a2eb3f87d4d284409b2003039"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_usage_get_file </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$required</em> = <code>FALSE</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns path to usage file. </p>

<p>Definition at line <a class="el" href="usage_8drush_8inc_source.html#l00103">103</a> of file <a class="el" href="usage_8drush_8inc_source.html">usage.drush.inc</a>.</p>

<p>References <a class="el" href="includes_2environment_8inc_source.html#l00658">drush_directory_cache()</a>.</p>

<p>Referenced by <a class="el" href="usage_8drush_8inc_source.html#l00068">drush_usage_send()</a>, <a class="el" href="usage_8drush_8inc_source.html#l00083">drush_usage_show()</a>, and <a class="el" href="usage_8drush_8inc_source.html#l00050">usage_drush_exit()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="usage_8drush_8inc_ad52add4a2eb3f87d4d284409b2003039_cgraph.png" border="0" usemap="#usage_8drush_8inc_ad52add4a2eb3f87d4d284409b2003039_cgraph" alt=""/></div>
<map name="usage_8drush_8inc_ad52add4a2eb3f87d4d284409b2003039_cgraph" id="usage_8drush_8inc_ad52add4a2eb3f87d4d284409b2003039_cgraph">
<area shape="rect" id="node3" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="207,404,359,434"/><area shape="rect" id="node5" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="419,51,541,80"/><area shape="rect" id="node11" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="425,302,535,331"/><area shape="rect" id="node19" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="619,404,712,434"/><area shape="rect" id="node21" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="788,240,900,270"/><area shape="rect" id="node41" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="825,404,863,434"/><area shape="rect" id="node57" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="409,508,551,538"/><area shape="rect" id="node60" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="412,562,548,591"/><area shape="rect" id="node7" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="780,32,908,62"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1599,215,1727,244"/><area shape="rect" id="node13" href="startup_8inc.html#a8a60166d51e5fbaae23dac444006483b" title="drush_is_windows" alt="" coords="601,250,729,279"/><area shape="rect" id="node15" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="623,76,708,106"/><area shape="rect" id="node55" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="601,180,729,226"/><area shape="rect" id="node24" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="959,136,1140,166"/><area shape="rect" id="node26" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1389,240,1544,270"/><area shape="rect" id="node29" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1011,292,1088,322"/><area shape="rect" id="node31" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1220,292,1305,322"/><area shape="rect" id="node34" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1419,344,1515,374"/><area shape="rect" id="node36" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1612,396,1713,426"/><area shape="rect" id="node38" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1777,396,1911,426"/><area shape="rect" id="node43" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="983,392,1116,438"/><area shape="rect" id="node51" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="980,462,1119,491"/><area shape="rect" id="node45" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1191,400,1335,430"/><area shape="rect" id="node48" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1384,448,1549,478"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="usage_8drush_8inc_ad52add4a2eb3f87d4d284409b2003039_icgraph.png" border="0" usemap="#usage_8drush_8inc_ad52add4a2eb3f87d4d284409b2003039_icgraph" alt=""/></div>
<map name="usage_8drush_8inc_ad52add4a2eb3f87d4d284409b2003039_icgraph" id="usage_8drush_8inc_ad52add4a2eb3f87d4d284409b2003039_icgraph">
<area shape="rect" id="node3" href="usage_8drush_8inc.html#a315af941461f0a0d3b4ec1c5063d94ac" title="drush_usage_send" alt="" coords="208,5,339,35"/><area shape="rect" id="node5" href="usage_8drush_8inc.html#ab9ed81c63a7f92ea9336314205780bd0" title="drush_usage_show" alt="" coords="207,59,340,88"/><area shape="rect" id="node7" href="usage_8drush_8inc.html#a0a90320da8f9df59381caaf3338d60cf" title="usage_drush_exit" alt="" coords="212,112,335,141"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a315af941461f0a0d3b4ec1c5063d94ac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_usage_send </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set option to send usage to Mongolab.</p>
<p>See <a class="el" href="usage_8drush_8inc.html#a0a90320da8f9df59381caaf3338d60cf">usage_drush_exit()</a> for more information. </p>

<p>Definition at line <a class="el" href="usage_8drush_8inc_source.html#l00068">68</a> of file <a class="el" href="usage_8drush_8inc_source.html">usage.drush.inc</a>.</p>

<p>References <a class="el" href="usage_8drush_8inc_source.html#l00103">_drush_usage_get_file()</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="usage_8drush_8inc_a315af941461f0a0d3b4ec1c5063d94ac_cgraph.png" border="0" usemap="#usage_8drush_8inc_a315af941461f0a0d3b4ec1c5063d94ac_cgraph" alt=""/></div>
<map name="usage_8drush_8inc_a315af941461f0a0d3b4ec1c5063d94ac_cgraph" id="usage_8drush_8inc_a315af941461f0a0d3b4ec1c5063d94ac_cgraph">
<area shape="rect" id="node3" href="usage_8drush_8inc.html#ad52add4a2eb3f87d4d284409b2003039" title="_drush_usage_get_file" alt="" coords="184,335,336,364"/><area shape="rect" id="node23" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="975,144,1087,173"/><area shape="rect" id="node43" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1012,364,1049,393"/><area shape="rect" id="node66" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="217,533,303,563"/><area shape="rect" id="node76" href="context_8inc.html#aa4b55e2f6174c8b6efaa8f23a0f9e0af" title="drush_set_option" alt="" coords="401,708,521,737"/><area shape="rect" id="node5" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="385,284,537,313"/><area shape="rect" id="node7" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="791,525,913,555"/><area shape="rect" id="node13" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="608,204,717,233"/><area shape="rect" id="node21" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="805,93,899,123"/><area shape="rect" id="node59" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="592,257,733,287"/><area shape="rect" id="node62" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="595,311,731,340"/><area shape="rect" id="node9" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="967,524,1095,553"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1785,444,1913,473"/><area shape="rect" id="node15" href="startup_8inc.html#a8a60166d51e5fbaae23dac444006483b" title="drush_is_windows" alt="" coords="788,197,916,227"/><area shape="rect" id="node17" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="809,472,895,501"/><area shape="rect" id="node57" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="788,250,916,297"/><area shape="rect" id="node26" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1145,141,1327,171"/><area shape="rect" id="node28" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1576,247,1731,276"/><area shape="rect" id="node31" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1197,195,1275,224"/><area shape="rect" id="node33" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1407,195,1492,224"/><area shape="rect" id="node36" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1605,143,1701,172"/><area shape="rect" id="node38" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1799,249,1900,279"/><area shape="rect" id="node40" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1964,249,2097,279"/><area shape="rect" id="node45" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1169,350,1303,397"/><area shape="rect" id="node53" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1167,420,1305,449"/><area shape="rect" id="node47" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1377,359,1521,388"/><area shape="rect" id="node50" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1571,355,1736,384"/><area shape="rect" id="node68" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="401,603,521,632"/><area shape="rect" id="node70" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="599,683,727,712"/><area shape="rect" id="node73" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="588,629,737,659"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab9ed81c63a7f92ea9336314205780bd0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_usage_show </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Displays usage file. </p>

<p>Definition at line <a class="el" href="usage_8drush_8inc_source.html#l00083">83</a> of file <a class="el" href="usage_8drush_8inc_source.html">usage.drush.inc</a>.</p>

<p>References <a class="el" href="usage_8drush_8inc_source.html#l00103">_drush_usage_get_file()</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>, 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="usage_8drush_8inc_ab9ed81c63a7f92ea9336314205780bd0_cgraph.png" border="0" usemap="#usage_8drush_8inc_ab9ed81c63a7f92ea9336314205780bd0_cgraph" alt=""/></div>
<map name="usage_8drush_8inc_ab9ed81c63a7f92ea9336314205780bd0_cgraph" id="usage_8drush_8inc_ab9ed81c63a7f92ea9336314205780bd0_cgraph">
<area shape="rect" id="node3" href="usage_8drush_8inc.html#ad52add4a2eb3f87d4d284409b2003039" title="_drush_usage_get_file" alt="" coords="189,327,341,356"/><area shape="rect" id="node23" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="980,144,1092,173"/><area shape="rect" id="node43" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1017,364,1055,393"/><area shape="rect" id="node66" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="223,568,308,597"/><area shape="rect" id="node5" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="391,276,543,305"/><area shape="rect" id="node7" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="796,525,919,555"/><area shape="rect" id="node13" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="613,196,723,225"/><area shape="rect" id="node21" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="811,93,904,123"/><area shape="rect" id="node59" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="597,249,739,279"/><area shape="rect" id="node62" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="600,353,736,383"/><area shape="rect" id="node9" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="972,499,1100,528"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1791,377,1919,407"/><area shape="rect" id="node15" href="startup_8inc.html#a8a60166d51e5fbaae23dac444006483b" title="drush_is_windows" alt="" coords="793,317,921,347"/><area shape="rect" id="node17" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="815,472,900,501"/><area shape="rect" id="node57" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="793,247,921,294"/><area shape="rect" id="node26" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1151,169,1332,199"/><area shape="rect" id="node28" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1581,221,1736,251"/><area shape="rect" id="node31" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1203,116,1280,145"/><area shape="rect" id="node33" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1412,144,1497,173"/><area shape="rect" id="node36" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1611,117,1707,147"/><area shape="rect" id="node38" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1804,221,1905,251"/><area shape="rect" id="node40" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1969,221,2103,251"/><area shape="rect" id="node45" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1175,325,1308,371"/><area shape="rect" id="node53" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1172,395,1311,424"/><area shape="rect" id="node47" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1383,333,1527,363"/><area shape="rect" id="node50" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1576,325,1741,355"/><area shape="rect" id="node68" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="407,604,527,633"/><area shape="rect" id="node70" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="604,629,732,659"/><area shape="rect" id="node73" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="593,683,743,712"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa3c21e2eb03c01ddabd57ecbe5a55317"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">usage_drush_command </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>To send usage data, add the following to a .drushrc.php file: $options['drush_usage_log'] = TRUE; $options['drush_usage_send'] = TRUE; $options['drush_usage_size'] = 51200; </p>

<p>Definition at line <a class="el" href="usage_8drush_8inc_source.html#l00018">18</a> of file <a class="el" href="usage_8drush_8inc_source.html">usage.drush.inc</a>.</p>

</div>
</div>
<a class="anchor" id="a0a90320da8f9df59381caaf3338d60cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">usage_drush_exit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Log and/or send usage data to Mongolab.</p>
<p>An organization can implement own <a class="el" href="group__hooks.html#gaceff65b92d3f8e8cd206b1675bd20673">hook_drush_exit()</a> to send data to a different endpoint. </p>

<p>Definition at line <a class="el" href="usage_8drush_8inc_source.html#l00050">50</a> of file <a class="el" href="usage_8drush_8inc_source.html">usage.drush.inc</a>.</p>

<p>References <a class="el" href="usage_8drush_8inc_source.html#l00103">_drush_usage_get_file()</a>, <a class="el" href="context_8inc_source.html#l00387">drush_get_command()</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><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="usage_8drush_8inc_a0a90320da8f9df59381caaf3338d60cf_cgraph.png" border="0" usemap="#usage_8drush_8inc_a0a90320da8f9df59381caaf3338d60cf_cgraph" alt=""/></div>
<map name="usage_8drush_8inc_a0a90320da8f9df59381caaf3338d60cf_cgraph" id="usage_8drush_8inc_a0a90320da8f9df59381caaf3338d60cf_cgraph">
<area shape="rect" id="node3" href="usage_8drush_8inc.html#ad52add4a2eb3f87d4d284409b2003039" title="_drush_usage_get_file" alt="" coords="179,372,331,402"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1772,222,1900,251"/><area shape="rect" id="node66" href="context_8inc.html#a8fc57227375a540fea5314b154576354" title="drush_get_command" alt="" coords="1365,482,1507,511"/><area shape="rect" id="node70" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="195,602,315,631"/><area shape="rect" id="node5" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="380,334,532,363"/><area shape="rect" id="node7" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="592,68,715,98"/><area shape="rect" id="node13" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="599,300,708,330"/><area shape="rect" id="node21" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="792,248,885,278"/><area shape="rect" id="node23" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="961,220,1073,250"/><area shape="rect" id="node43" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="999,387,1036,416"/><area shape="rect" id="node59" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="583,419,724,448"/><area shape="rect" id="node62" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="585,472,721,502"/><area shape="rect" id="node9" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="953,67,1081,96"/><area shape="rect" id="node15" href="startup_8inc.html#a8a60166d51e5fbaae23dac444006483b" title="drush_is_windows" alt="" coords="775,352,903,382"/><area shape="rect" id="node17" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="796,94,881,123"/><area shape="rect" id="node57" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="775,405,903,452"/><area shape="rect" id="node26" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1132,326,1313,355"/><area shape="rect" id="node28" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1563,222,1717,251"/><area shape="rect" id="node31" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1184,272,1261,302"/><area shape="rect" id="node33" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1393,274,1479,303"/><area shape="rect" id="node36" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1592,627,1688,656"/><area shape="rect" id="node38" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1785,654,1887,683"/><area shape="rect" id="node40" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1951,654,2084,683"/><area shape="rect" id="node45" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1156,378,1289,425"/><area shape="rect" id="node53" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1153,448,1292,478"/><area shape="rect" id="node47" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1364,387,1508,416"/><area shape="rect" id="node50" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1557,680,1723,710"/><area shape="rect" id="node72" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="392,627,520,656"/><area shape="rect" id="node75" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="381,680,531,710"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Oct 17 2016 07:27:23 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>