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 99 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 64 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 79 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 16 of file usage.drush.inc.

References DRUSH_BOOTSTRAP_DRUSH.

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 46 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="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_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#l00099">99</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#l00691">drush_directory_cache()</a>.</p>

<p>Referenced by <a class="el" href="usage_8drush_8inc_source.html#l00064">drush_usage_send()</a>, <a class="el" href="usage_8drush_8inc_source.html#l00079">drush_usage_show()</a>, and <a class="el" href="usage_8drush_8inc_source.html#l00046">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,359,359,388"/><area shape="rect" id="node5" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="419,5,541,35"/><area shape="rect" id="node11" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="425,256,535,285"/><area shape="rect" id="node19" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="619,359,712,388"/><area shape="rect" id="node21" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="788,241,900,271"/><area shape="rect" id="node33" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="825,355,863,384"/><area shape="rect" id="node46" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="409,463,551,492"/><area shape="rect" id="node49" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="412,516,548,545"/><area shape="rect" id="node7" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="780,31,908,60"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1428,215,1556,244"/><area shape="rect" id="node13" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="601,204,729,233"/><area shape="rect" id="node15" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="623,31,708,60"/><area shape="rect" id="node44" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="601,134,729,181"/><area shape="rect" id="node24" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="959,136,1140,165"/><area shape="rect" id="node26" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1191,240,1345,269"/><area shape="rect" id="node29" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1011,189,1088,219"/><area shape="rect" id="node35" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="983,345,1116,391"/><area shape="rect" id="node37" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1196,348,1340,377"/><area shape="rect" id="node40" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1395,348,1589,377"/></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#l00064">64</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#l00099">_drush_usage_get_file()</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="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,341,336,371"/><area shape="rect" id="node23" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="975,451,1087,480"/><area shape="rect" id="node35" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1012,92,1049,121"/><area shape="rect" id="node55" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="217,579,303,608"/><area shape="rect" id="node65" 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,233,537,263"/><area shape="rect" id="node7" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="791,373,913,403"/><area shape="rect" id="node13" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="608,259,717,288"/><area shape="rect" id="node21" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="805,144,899,173"/><area shape="rect" id="node48" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="592,101,733,131"/><area shape="rect" id="node51" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="595,155,731,184"/><area shape="rect" id="node9" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="967,320,1095,349"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1615,448,1743,477"/><area shape="rect" id="node15" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" 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,320,895,349"/><area shape="rect" id="node46" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="788,250,916,297"/><area shape="rect" id="node26" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1145,371,1327,400"/><area shape="rect" id="node28" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1377,525,1532,555"/><area shape="rect" id="node31" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1197,475,1275,504"/><area shape="rect" id="node37" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1169,142,1303,189"/><area shape="rect" id="node39" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1383,184,1527,213"/><area shape="rect" id="node42" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1581,184,1776,213"/><area shape="rect" id="node57" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="401,604,521,633"/><area shape="rect" id="node59" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="599,629,727,659"/><area shape="rect" id="node62" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="588,683,737,712"/></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#l00079">79</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#l00099">_drush_usage_get_file()</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>, 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="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,376,341,405"/><area shape="rect" id="node23" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="980,124,1092,153"/><area shape="rect" id="node35" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1017,503,1055,532"/><area shape="rect" id="node55" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="223,631,308,660"/><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,171,919,200"/><area shape="rect" id="node13" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="613,301,723,331"/><area shape="rect" id="node21" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="811,400,904,429"/><area shape="rect" id="node48" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="597,43,739,72"/><area shape="rect" id="node51" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="600,197,736,227"/><area shape="rect" id="node9" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="972,295,1100,324"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1620,296,1748,325"/><area shape="rect" id="node15" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="793,224,921,253"/><area shape="rect" id="node17" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="815,347,900,376"/><area shape="rect" id="node46" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="793,277,921,323"/><area shape="rect" id="node26" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1151,135,1332,164"/><area shape="rect" id="node28" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1383,193,1537,223"/><area shape="rect" id="node31" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1203,239,1280,268"/><area shape="rect" id="node37" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1175,515,1308,562"/><area shape="rect" id="node39" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1388,656,1532,685"/><area shape="rect" id="node42" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1587,656,1781,685"/><area shape="rect" id="node57" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="407,644,527,673"/><area shape="rect" id="node59" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="604,656,732,685"/><area shape="rect" id="node62" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="593,709,743,739"/></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#l00016">16</a> of file <a class="el" href="usage_8drush_8inc_source.html">usage.drush.inc</a>.</p>

<p>References <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00041">DRUSH_BOOTSTRAP_DRUSH</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#l00046">46</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#l00099">_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,360,331,389"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1601,428,1729,457"/><area shape="rect" id="node55" href="context_8inc.html#a8fc57227375a540fea5314b154576354" title="drush_get_command" alt="" coords="1371,585,1512,615"/><area shape="rect" id="node59" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="195,668,315,697"/><area shape="rect" id="node5" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="380,292,532,321"/><area shape="rect" id="node7" href="group__errorhandling.html#ga7bc0a52d28467940b2bb9588a660ed8f" title="drush_clear_error" alt="" coords="592,513,715,543"/><area shape="rect" id="node13" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="599,317,708,347"/><area shape="rect" id="node21" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="792,160,885,189"/><area shape="rect" id="node23" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="961,324,1073,353"/><area shape="rect" id="node35" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="999,139,1036,168"/><area shape="rect" id="node48" href="includes_2environment_8inc.html#a25a1b7c8414b818e263d31ff06363772" title="drush_get_username" alt="" coords="583,160,724,189"/><area shape="rect" id="node51" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="585,213,721,243"/><area shape="rect" id="node9" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="953,531,1081,560"/><area shape="rect" id="node15" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="775,264,903,293"/><area shape="rect" id="node17" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="796,488,881,517"/><area shape="rect" id="node46" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="775,367,903,414"/><area shape="rect" id="node26" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1132,272,1313,301"/><area shape="rect" id="node28" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1364,376,1519,405"/><area shape="rect" id="node31" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1184,427,1261,456"/><area shape="rect" id="node37" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1156,119,1289,166"/><area shape="rect" id="node39" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1369,5,1513,35"/><area shape="rect" id="node42" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1568,5,1763,35"/><area shape="rect" id="node61" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="392,693,520,723"/><area shape="rect" id="node64" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="381,747,531,776"/></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:56 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>