Drush: includes/drupal.inc File Reference

  1. 7.x doxygen/html/includes_2drupal_8inc.html
  2. master doxygen/html/drupal_8inc.html
  3. master doxygen/html/includes_2drupal_8inc.html
drupal.inc File Reference

Go to the source code of this file.

Functions

 drush_drupal_load_autoloader ($drupal_root)
 drush_drupal_version ($drupal_root=NULL)
 drush_drupal_cache_clear_all ()
 drush_drupal_major_version ($drupal_root=NULL)
 system_watchdog ($log_entry)
 _drush_log_update_sql ($ret)
 drush_find_profiles ($drupal_root, $key= 'name')
 drush_drupal_parse_info_file ($filename)
 _drush_drupal_parse_info_file ($data, $merge_item=NULL)
 drush_cid_install_profile ()

Detailed Description

Utility functions related to Drupal.

Definition in file drupal.inc.

Function Documentation

_drush_drupal_parse_info_file (   $data,
  $merge_item = NULL 
)

Parse the info file.

Definition at line 179 of file drupal.inc.

Referenced by drush_drupal_parse_info_file(), and make_parse_info_file().

Here is the caller graph for this function:

_drush_log_update_sql (   $ret)

Log the return value of Drupal hook_update_n functions.

This is used during install and update to log the output of the update process to the logging system.

Definition at line 141 of file drupal.inc.

References drush_log(), and drush_set_error().

Referenced by _update_do_one().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_cid_install_profile ( )

Build a cache id to store the install_profile for a given site.

Definition at line 249 of file drupal.inc.

References drush_get_cid(), and drush_get_context().

Referenced by _drush_bootstrap_drupal_full().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_drupal_load_autoloader (   $drupal_root)

Loads the Drupal autoloader and returns the instance.

Definition at line 11 of file drupal.inc.

Referenced by drush_drupal_version().

Here is the caller graph for this function:

drush_drupal_parse_info_file (   $filename)

Parse Drupal info file format.

Copied with modifications from includes/common.inc.

See Also
drupal_parse_info_file

Definition at line 167 of file drupal.inc.

References _drush_drupal_parse_info_file().

Here is the call graph for this function:

drush_drupal_version (   $drupal_root = NULL)

Detects the version number of the current Drupal installation, if any. Returns FALSE if there is no current Drupal installation, or it is somehow broken.

Returns
A string containing the version number of the current Drupal installation, if any. Otherwise, return FALSE.

Definition at line 28 of file drupal.inc.

References drush_drupal_load_autoloader(), and drush_get_context().

Referenced by _drush_bootstrap_drupal_root(), _drush_make_generate_projects(), drush_archive_guess_manifest(), drush_drupal_major_version(), and drush_get_projects().

Here is the call graph for this function:

Here is the caller graph for this function:

system_watchdog (   $log_entry)

Log Drupal watchdog() calls.

A sneaky implementation of hook_watchdog().

Definition at line 93 of file drupal.inc.

References drush_drupal_major_version(), drush_get_option(), drush_include_engine(), drush_log(), drush_print(), and drush_watchdog_severity_levels().

Here is the call graph for this function:

File

doxygen/html/includes_2drupal_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: includes/drupal.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_09e761304027c904456130627fd4dcf5.html">includes</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">drupal.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="includes_2drupal_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:aa7ac001ed15d678fa533b54d962eb5bc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc">drush_drupal_load_autoloader</a> ($drupal_root)</td></tr>
<tr class="memitem:a203e989fd043d054d774954e2b2dff21"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21">drush_drupal_version</a> ($drupal_root=NULL)</td></tr>
<tr class="memitem:ab20d38d18e07b96accb388b0197fbede"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab20d38d18e07b96accb388b0197fbede"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_drupal_cache_clear_all</b> ()</td></tr>
<tr class="memitem:ad2ccab77d4bc8e7355186f26cd328ac0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0">drush_drupal_major_version</a> ($drupal_root=NULL)</td></tr>
<tr class="memitem:ac194fb53f4e5500f275a2debb0dfc608"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2drupal_8inc.html#ac194fb53f4e5500f275a2debb0dfc608">system_watchdog</a> ($log_entry)</td></tr>
<tr class="memitem:abc6906957148e12e75f22aec44c45ec9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2drupal_8inc.html#abc6906957148e12e75f22aec44c45ec9">_drush_log_update_sql</a> ($ret)</td></tr>
<tr class="memitem:ae635310395419f5afe958cc3be6c6a6d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae635310395419f5afe958cc3be6c6a6d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_find_profiles</b> ($drupal_root, $key= 'name')</td></tr>
<tr class="memitem:ad1b1feb800eb96bd22b0e9179ef79c86"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2drupal_8inc.html#ad1b1feb800eb96bd22b0e9179ef79c86">drush_drupal_parse_info_file</a> ($filename)</td></tr>
<tr class="memitem:a47c8064fb8f359786a3bddaf55cd9953"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2drupal_8inc.html#a47c8064fb8f359786a3bddaf55cd9953">_drush_drupal_parse_info_file</a> ($data, $merge_item=NULL)</td></tr>
<tr class="memitem:a6def9b165115bf72a27e13f4949149da"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2drupal_8inc.html#a6def9b165115bf72a27e13f4949149da">drush_cid_install_profile</a> ()</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Utility functions related to Drupal. </p>

<p>Definition in file <a class="el" href="includes_2drupal_8inc_source.html">drupal.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="a47c8064fb8f359786a3bddaf55cd9953"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_drupal_parse_info_file </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$merge_item</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Parse the info file. </p>

<p>Definition at line <a class="el" href="includes_2drupal_8inc_source.html#l00179">179</a> of file <a class="el" href="includes_2drupal_8inc_source.html">drupal.inc</a>.</p>

<p>Referenced by <a class="el" href="includes_2drupal_8inc_source.html#l00167">drush_drupal_parse_info_file()</a>, and <a class="el" href="make_8utilities_8inc_source.html#l00014">make_parse_info_file()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_a47c8064fb8f359786a3bddaf55cd9953_icgraph.png" border="0" usemap="#includes_2drupal_8inc_a47c8064fb8f359786a3bddaf55cd9953_icgraph" alt=""/></div>
<map name="includes_2drupal_8inc_a47c8064fb8f359786a3bddaf55cd9953_icgraph" id="includes_2drupal_8inc_a47c8064fb8f359786a3bddaf55cd9953_icgraph">
<area shape="rect" id="node3" href="includes_2drupal_8inc.html#ad1b1feb800eb96bd22b0e9179ef79c86" title="drush_drupal_parse\l_info_file" alt="" coords="204,5,337,51"/><area shape="rect" id="node5" href="make_8utilities_8inc.html#ac0c5ebc3f3671b4fe5723088000791fa" title="make_parse_info_file" alt="" coords="199,75,343,104"/><area shape="rect" id="node7" href="make_8utilities_8inc.html#acb37b7739b2d486d1920a413676c42bf" title="_make_parse_info_file" alt="" coords="405,23,557,52"/><area shape="rect" id="node11" href="generate_8contents_8make_8inc.html#ae22e86e5816853f66923925aa90164e1" title="make_generate_from\l_makefile" alt="" coords="631,63,775,110"/><area shape="rect" id="node15" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="393,129,569,159"/><area shape="rect" id="node9" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="835,43,928,72"/><area shape="rect" id="node17" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="620,133,785,163"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="abc6906957148e12e75f22aec44c45ec9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_log_update_sql </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$ret</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Log the return value of Drupal hook_update_n functions.</p>
<p>This is used during install and update to log the output of the update process to the logging system. </p>

<p>Definition at line <a class="el" href="includes_2drupal_8inc_source.html#l00141">141</a> of file <a class="el" href="includes_2drupal_8inc_source.html">drupal.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, and <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>.</p>

<p>Referenced by <a class="el" href="update__6_8inc_source.html#l00430">_update_do_one()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_abc6906957148e12e75f22aec44c45ec9_cgraph.png" border="0" usemap="#includes_2drupal_8inc_abc6906957148e12e75f22aec44c45ec9_cgraph" alt=""/></div>
<map name="includes_2drupal_8inc_abc6906957148e12e75f22aec44c45ec9_cgraph" id="includes_2drupal_8inc_abc6906957148e12e75f22aec44c45ec9_cgraph">
<area shape="rect" id="node3" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="421,5,499,35"/><area shape="rect" id="node10" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="208,57,320,87"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="807,56,935,85"/><area shape="rect" id="node7" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="601,56,756,85"/><area shape="rect" id="node13" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="369,160,551,189"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_abc6906957148e12e75f22aec44c45ec9_icgraph.png" border="0" usemap="#includes_2drupal_8inc_abc6906957148e12e75f22aec44c45ec9_icgraph" alt=""/></div>
<map name="includes_2drupal_8inc_abc6906957148e12e75f22aec44c45ec9_icgraph" id="includes_2drupal_8inc_abc6906957148e12e75f22aec44c45ec9_icgraph">
<area shape="rect" id="node3" href="update__6_8inc.html#afc8cabc135ea5705d5fc503036c68678" title="_update_do_one" alt="" coords="208,5,325,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6def9b165115bf72a27e13f4949149da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_cid_install_profile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Build a cache id to store the install_profile for a given site. </p>

<p>Definition at line <a class="el" href="includes_2drupal_8inc_source.html#l00249">249</a> of file <a class="el" href="includes_2drupal_8inc_source.html">drupal.inc</a>.</p>

<p>References <a class="el" href="includes_2cache_8inc_source.html#l00184">drush_get_cid()</a>, and <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00668">_drush_bootstrap_drupal_full()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_a6def9b165115bf72a27e13f4949149da_cgraph.png" border="0" usemap="#includes_2drupal_8inc_a6def9b165115bf72a27e13f4949149da_cgraph" alt=""/></div>
<map name="includes_2drupal_8inc_a6def9b165115bf72a27e13f4949149da_cgraph" id="includes_2drupal_8inc_a6def9b165115bf72a27e13f4949149da_cgraph">
<area shape="rect" id="node3" href="includes_2cache_8inc.html#a70613777c5e1a0e258bd0d8e213e0156" title="drush_get_cid" alt="" coords="217,5,319,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="369,32,497,61"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_a6def9b165115bf72a27e13f4949149da_icgraph.png" border="0" usemap="#includes_2drupal_8inc_a6def9b165115bf72a27e13f4949149da_icgraph" alt=""/></div>
<map name="includes_2drupal_8inc_a6def9b165115bf72a27e13f4949149da_icgraph" id="includes_2drupal_8inc_a6def9b165115bf72a27e13f4949149da_icgraph">
<area shape="rect" id="node3" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adc30118a77a2f8c97e22215bd5d2ac08" title="_drush_bootstrap_drupal_full" alt="" coords="217,5,404,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa7ac001ed15d678fa533b54d962eb5bc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_drupal_load_autoloader </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$drupal_root</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Loads the Drupal autoloader and returns the instance. </p>

<p>Definition at line <a class="el" href="includes_2drupal_8inc_source.html#l00011">11</a> of file <a class="el" href="includes_2drupal_8inc_source.html">drupal.inc</a>.</p>

<p>Referenced by <a class="el" href="includes_2drupal_8inc_source.html#l00028">drush_drupal_version()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_aa7ac001ed15d678fa533b54d962eb5bc_icgraph.png" border="0" usemap="#includes_2drupal_8inc_aa7ac001ed15d678fa533b54d962eb5bc_icgraph" alt=""/></div>
<map name="includes_2drupal_8inc_aa7ac001ed15d678fa533b54d962eb5bc_icgraph" id="includes_2drupal_8inc_aa7ac001ed15d678fa533b54d962eb5bc_icgraph">
<area shape="rect" id="node3" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="249,248,393,277"/><area shape="rect" id="node5" href="archive_8drush_8inc.html#a51085ff955b6905e494c7da6cd84e028" title="drush_archive_guess\l_manifest" alt="" coords="444,239,588,286"/><area shape="rect" id="node9" href="generate_8make_8inc.html#aa4ffaa2643ef640c4768f3635bba29a1" title="_drush_make_generate\l_projects" alt="" coords="664,178,821,225"/><area shape="rect" id="node13" href="group__extensions.html#gadf92772f6521fbc75a53ccec7e5e007e" title="drush_get_projects" alt="" coords="451,127,581,156"/><area shape="rect" id="node22" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="449,1229,583,1275"/><area shape="rect" id="node105" href="lib_2Drush_2Boot_2bootstrap_8inc.html#aaf2547972243d700b69f6ca272691cda" title="_drush_bootstrap_drupal_root" alt="" coords="647,2376,839,2405"/><area shape="rect" id="node7" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="668,248,817,277"/><area shape="rect" id="node11" href="generate_8make_8inc.html#affbdb849f1d2299740a4ea789ef29bfb" title="drush_make_generate" alt="" coords="911,187,1060,216"/><area shape="rect" id="node16" href="group__extensions.html#gaea366ba3a9ac9138d35dc9e3523b47ea" title="pm_complete_projects" alt="" coords="667,75,819,104"/><area shape="rect" id="node18" href="updatexml_8inc.html#a77d3e30a6d929bcfcbddaf167177dfab" title="updatexml_get_releases\l_from_xml" alt="" coords="661,5,824,51"/><area shape="rect" id="node20" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="905,271,1065,300"/><area shape="rect" id="node25" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="669,1344,816,1373"/><area shape="rect" id="node27" href="core_8drush_8inc.html#aefd8feb109bb44eb6543dbd18f64b91b" title="drush_core_updatedb\l_status" alt="" coords="669,1397,816,1443"/><area shape="rect" id="node29" href="core_8drush_8inc.html#aa4653becec42d140691bb014e52e8145" title="drush_core_cron" alt="" coords="684,1467,801,1496"/><area shape="rect" id="node31" href="core_8drush_8inc.html#a29b2ff77f4ca8032f23039c5d835c7ad" title="drush_core_updatedb\l_batch_process" alt="" coords="669,1519,816,1566"/><area shape="rect" id="node33" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="665,1589,820,1635"/><area shape="rect" id="node35" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="911,1619,1060,1666"/><area shape="rect" id="node37" href="commands_2core_2drupal_2batch_8inc.html#a1e3ba040027e50c90258295d7a70aec0" title="_drush_batch_finished" alt="" coords="667,1709,819,1739"/><area shape="rect" id="node40" href="includes_2batch_8inc.html#af470f96043a86e75e72cb186abf518ce" title="drush_batch_command" alt="" coords="664,1763,821,1792"/><area shape="rect" id="node42" href="includes_2environment_8inc.html#adbd40db8b61325ed439ffe618f56282a" title="drush_valid_db_credentials" alt="" coords="896,1843,1075,1872"/><area shape="rect" id="node44" href="includes_2environment_8inc.html#a6f651473a044c97c2a17e63e6455d08e" title="drush_drupal_sitewide\l_directory" alt="" coords="668,1919,817,1966"/><area shape="rect" id="node46" href="environment__7_8inc.html#a7d1f0d019005c0d633c8179e9be163cb" title="drush_module_uninstall" alt="" coords="664,1989,821,2019"/><area shape="rect" id="node48" href="image_8drush_8inc.html#a1851fe97c792db56d16ed71421671f5a" title="image_drush_help_alter" alt="" coords="664,2043,821,2072"/><area shape="rect" id="node50" href="image_8drush_8inc.html#a2dc93132bd3c21ad6e474a9d6a241722" title="image_image_flush_complete" alt="" coords="645,2096,840,2125"/><area shape="rect" id="node52" href="test_8drush_8inc.html#a7072eebfd71d67302d4a81a871546f58" title="test_drush_help_alter" alt="" coords="669,2149,816,2179"/><area shape="rect" id="node54" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="932,2228,1039,2257"/><area shape="rect" id="node56" href="test_8drush_8inc.html#ae25259420aa03c34eddc837befcf0df4" title="simpletest_drush_run_test" alt="" coords="656,2203,829,2232"/><area shape="rect" id="node60" href="download_8pm_8inc.html#a6fd957d1eb7a2b91bcd4b4662371200a" title="_pm_download_destination\l_lookup" alt="" coords="653,2306,832,2353"/><area shape="rect" id="node62" href="info_8pm_8inc.html#ad8628d53d40f2db788ec0bec2f9ac62e" title="_drush_pm_info_module" alt="" coords="661,355,824,384"/><area shape="rect" id="node64" href="info_8pm_8inc.html#ac066152dd0bc2eed6c7284336aebe62e" title="_drush_pm_info_theme" alt="" coords="664,408,821,437"/><area shape="rect" id="node66" href="pm_8drush_8inc.html#a61ebecaa80b51380169ddd81f751f0df" title="drush_pm_list" alt="" coords="692,461,793,491"/><area shape="rect" id="node68" href="pm_8drush_8inc.html#a836eda9c253a0e7edd01c683fe2d6d00" title="drush_pm_disable" alt="" coords="680,515,805,544"/><area shape="rect" id="node70" href="pm_8drush_8inc.html#a89e844acc44eb017c1a12840164316af" title="drush_pm_uninstall" alt="" coords="676,568,809,597"/><area shape="rect" id="node72" href="pm_8drush_8inc.html#a66b0def0d14711d5c10884363c8ae1b5" title="pm_parse_project_version" alt="" coords="656,301,829,331"/><area shape="rect" id="node75" href="updatexml_8inc.html#a4c90192cc502c7c05a5b4554c7d50258" title="release_info_print\l_releasenotes" alt="" coords="681,621,804,667"/><area shape="rect" id="node77" href="includes_2drupal_8inc.html#ac194fb53f4e5500f275a2debb0dfc608" title="system_watchdog" alt="" coords="679,691,807,720"/><area shape="rect" id="node79" href="sql_8drush_8inc.html#a848630530acc79df2b73d73df3feb131" title="sql_drush_help_alter" alt="" coords="672,744,813,773"/><area shape="rect" id="node81" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af" title="drush_sql_sanitize" alt="" coords="920,884,1051,913"/><area shape="rect" id="node83" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="675,847,811,894"/><area shape="rect" id="node85" href="user_8drush_8inc.html#ad28312594bc9f90055fd3a5ccdb7a3e5" title="user_drush_help_alter" alt="" coords="668,917,817,947"/><area shape="rect" id="node87" href="user_8drush_8inc.html#a2a734fb7b01da25df72010674f07fb1d" title="drush_user_cancel" alt="" coords="677,1024,808,1053"/><area shape="rect" id="node89" href="includes_2command_8inc.html#a70fb51b1b660ded588045e6fa4bda385" title="drush_enforce_requirement_core" alt="" coords="637,1077,848,1107"/><area shape="rect" id="node91" href="group__dbfunctions.html#gaaf67a267a19ac63f7eb05721b2170f89" title="drush_db_select" alt="" coords="684,1131,801,1160"/><area shape="rect" id="node93" href="group__dbfunctions.html#ga67f2a8891d0642284b856f8d90fa768d" title="drush_db_delete" alt="" coords="684,1184,801,1213"/><area shape="rect" id="node95" href="group__dbfunctions.html#ga5e868125411566a8b7f72cb2140bf45f" title="drush_db_result" alt="" coords="685,1237,800,1267"/><area shape="rect" id="node97" href="group__dbfunctions.html#ga4cd1e1df83196d9a69084246703c9057" title="drush_db_fetch_object" alt="" coords="667,1291,819,1320"/><area shape="rect" id="node99" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="692,971,793,1000"/><area shape="rect" id="node102" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="684,1816,801,1845"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad2ccab77d4bc8e7355186f26cd328ac0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_drupal_major_version </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$drupal_root</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the Drupal major version number (6, 7, 8 ...) </p>

<p>Definition at line <a class="el" href="includes_2drupal_8inc_source.html#l00077">77</a> of file <a class="el" href="includes_2drupal_8inc_source.html">drupal.inc</a>.</p>

<p>References <a class="el" href="includes_2drupal_8inc_source.html#l00028">drush_drupal_version()</a>.</p>

<p>Referenced by <a class="el" href="commands_2core_2drupal_2batch_8inc_source.html#l00017">_drush_backend_batch_process()</a>, <a class="el" href="commands_2core_2drupal_2batch_8inc_source.html#l00215">_drush_batch_finished()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00615">_drush_bootstrap_drupal_configuration()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00657">_drush_bootstrap_drupal_database()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00668">_drush_bootstrap_drupal_full()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00452">_drush_bootstrap_drupal_root()</a>, <a class="el" href="generate_8make_8inc_source.html#l00043">_drush_make_generate_projects()</a>, <a class="el" href="info_8pm_8inc_source.html#l00089">_drush_pm_info_module()</a>, <a class="el" href="info_8pm_8inc_source.html#l00125">_drush_pm_info_theme()</a>, <a class="el" href="download_8pm_8inc_source.html#l00290">_pm_download_destination_lookup()</a>, <a class="el" href="archive_8drush_8inc_source.html#l00310">drush_archive_restore()</a>, <a class="el" href="includes_2batch_8inc_source.html#l00070">drush_backend_batch_process()</a>, <a class="el" href="includes_2batch_8inc_source.html#l00087">drush_batch_command()</a>, <a class="el" href="core_8drush_8inc_source.html#l00644">drush_core_cron()</a>, <a class="el" href="core_8drush_8inc_source.html#l00441">drush_core_updatedb()</a>, <a class="el" href="core_8drush_8inc_source.html#l01125">drush_core_updatedb_batch_process()</a>, <a class="el" href="core_8drush_8inc_source.html#l00466">drush_core_updatedb_status()</a>, <a class="el" href="dbtng_8inc_source.html#l00143">drush_db_delete()</a>, <a class="el" href="dbtng_8inc_source.html#l00188">drush_db_fetch_object()</a>, <a class="el" href="dbtng_8inc_source.html#l00172">drush_db_result()</a>, <a class="el" href="dbtng_8inc_source.html#l00078">drush_db_select()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00852">drush_drupal_sitewide_directory()</a>, <a class="el" href="includes_2command_8inc_source.html#l01698">drush_enforce_requirement_core()</a>, <a class="el" href="drush_8inc_source.html#l00096">drush_get_class()</a>, <a class="el" href="drush_8inc_source.html#l00063">drush_include()</a>, <a class="el" href="engines_8inc_source.html#l00146">drush_load_command_engine()</a>, <a class="el" href="environment__7_8inc_source.html#l00169">drush_module_uninstall()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01055">drush_pm_disable()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00718">drush_pm_list()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01093">drush_pm_uninstall()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00537">drush_sql_sanitize()</a>, <a class="el" href="test_8drush_8inc_source.html#l00110">drush_test_run()</a>, <a class="el" href="user_8drush_8inc_source.html#l00333">drush_user_cancel()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00375">drush_valid_db_credentials()</a>, <a class="el" href="output_8inc_source.html#l00145">dt()</a>, <a class="el" href="image_8drush_8inc_source.html#l00051">image_drush_help_alter()</a>, <a class="el" href="image_8drush_8inc_source.html#l00065">image_image_flush_complete()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01243">pm_parse_project_version()</a>, <a class="el" href="updatexml_8inc_source.html#l00154">release_info_print_releasenotes()</a>, <a class="el" href="test_8drush_8inc_source.html#l00179">simpletest_drush_run_test()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00250">sql_drush_help_alter()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00694">sql_drush_sql_sync_sanitize()</a>, <a class="el" href="includes_2drupal_8inc_source.html#l00093">system_watchdog()</a>, <a class="el" href="test_8drush_8inc_source.html#l00011">test_drush_help_alter()</a>, and <a class="el" href="user_8drush_8inc_source.html#l00212">user_drush_help_alter()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_ad2ccab77d4bc8e7355186f26cd328ac0_cgraph.png" border="0" usemap="#includes_2drupal_8inc_ad2ccab77d4bc8e7355186f26cd328ac0_cgraph" alt=""/></div>
<map name="includes_2drupal_8inc_ad2ccab77d4bc8e7355186f26cd328ac0_cgraph" id="includes_2drupal_8inc_ad2ccab77d4bc8e7355186f26cd328ac0_cgraph">
<area shape="rect" id="node3" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="191,32,335,61"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="417,5,545,35"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="384,59,579,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_ad2ccab77d4bc8e7355186f26cd328ac0_icgraph.png" border="0" usemap="#includes_2drupal_8inc_ad2ccab77d4bc8e7355186f26cd328ac0_icgraph" alt=""/></div>
<map name="includes_2drupal_8inc_ad2ccab77d4bc8e7355186f26cd328ac0_icgraph" id="includes_2drupal_8inc_ad2ccab77d4bc8e7355186f26cd328ac0_icgraph">
<area shape="rect" id="node3" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="209,5,364,51"/><area shape="rect" id="node5" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="463,30,612,77"/><area shape="rect" id="node7" href="commands_2core_2drupal_2batch_8inc.html#a1e3ba040027e50c90258295d7a70aec0" title="_drush_batch_finished" alt="" coords="211,176,363,205"/><area shape="rect" id="node11" href="includes_2batch_8inc.html#af470f96043a86e75e72cb186abf518ce" title="drush_batch_command" alt="" coords="691,151,848,180"/><area shape="rect" id="node13" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7c56e6f89536dda612fc28dc84734b70" title="_drush_bootstrap_drupal\l_configuration" alt="" coords="205,229,368,275"/><area shape="rect" id="node15" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ac68b770de9be77b990364cf8cd7f25b9" title="_drush_bootstrap_drupal\l_database" alt="" coords="456,385,619,431"/><area shape="rect" id="node17" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adc30118a77a2f8c97e22215bd5d2ac08" title="_drush_bootstrap_drupal_full" alt="" coords="193,1323,380,1352"/><area shape="rect" id="node19" href="lib_2Drush_2Boot_2bootstrap_8inc.html#aaf2547972243d700b69f6ca272691cda" title="_drush_bootstrap_drupal_root" alt="" coords="441,455,633,484"/><area shape="rect" id="node21" href="generate_8make_8inc.html#aa4ffaa2643ef640c4768f3635bba29a1" title="_drush_make_generate\l_projects" alt="" coords="208,1375,365,1422"/><area shape="rect" id="node25" href="info_8pm_8inc.html#ad8628d53d40f2db788ec0bec2f9ac62e" title="_drush_pm_info_module" alt="" coords="205,352,368,381"/><area shape="rect" id="node29" href="info_8pm_8inc.html#ac066152dd0bc2eed6c7284336aebe62e" title="_drush_pm_info_theme" alt="" coords="208,299,365,328"/><area shape="rect" id="node32" href="download_8pm_8inc.html#a6fd957d1eb7a2b91bcd4b4662371200a" title="_pm_download_destination\l_lookup" alt="" coords="448,507,627,554"/><area shape="rect" id="node34" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="463,577,612,607"/><area shape="rect" id="node38" href="core_8drush_8inc.html#aa4653becec42d140691bb014e52e8145" title="drush_core_cron" alt="" coords="479,631,596,660"/><area shape="rect" id="node40" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="464,684,611,713"/><area shape="rect" id="node42" href="core_8drush_8inc.html#a29b2ff77f4ca8032f23039c5d835c7ad" title="drush_core_updatedb\l_batch_process" alt="" coords="213,1445,360,1491"/><area shape="rect" id="node44" href="core_8drush_8inc.html#aefd8feb109bb44eb6543dbd18f64b91b" title="drush_core_updatedb\l_status" alt="" coords="464,737,611,783"/><area shape="rect" id="node46" href="group__dbfunctions.html#ga67f2a8891d0642284b856f8d90fa768d" title="drush_db_delete" alt="" coords="228,1515,345,1544"/><area shape="rect" id="node48" href="group__dbfunctions.html#ga4cd1e1df83196d9a69084246703c9057" title="drush_db_fetch_object" alt="" coords="211,1568,363,1597"/><area shape="rect" id="node50" href="group__dbfunctions.html#ga5e868125411566a8b7f72cb2140bf45f" title="drush_db_result" alt="" coords="229,1621,344,1651"/><area shape="rect" id="node52" href="group__dbfunctions.html#gaaf67a267a19ac63f7eb05721b2170f89" title="drush_db_select" alt="" coords="228,1675,345,1704"/><area shape="rect" id="node54" href="includes_2environment_8inc.html#a6f651473a044c97c2a17e63e6455d08e" title="drush_drupal_sitewide\l_directory" alt="" coords="212,1727,361,1774"/><area shape="rect" id="node56" href="includes_2command_8inc.html#a70fb51b1b660ded588045e6fa4bda385" title="drush_enforce_requirement_core" alt="" coords="432,807,643,836"/><area shape="rect" id="node58" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="228,1797,345,1827"/><area shape="rect" id="node60" href="includes_2environment_8inc.html#adbd40db8b61325ed439ffe618f56282a" title="drush_valid_db_credentials" alt="" coords="448,1823,627,1852"/><area shape="rect" id="node62" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="236,864,337,893"/><area shape="rect" id="node64" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af" title="drush_sql_sanitize" alt="" coords="472,860,603,889"/><area shape="rect" id="node66" href="engines_8inc.html#af4e4689479142932fa789c5e314d29e9" title="drush_load_command\l_engine" alt="" coords="463,913,612,959"/><area shape="rect" id="node68" href="environment__7_8inc.html#a7d1f0d019005c0d633c8179e9be163cb" title="drush_module_uninstall" alt="" coords="208,1901,365,1931"/><area shape="rect" id="node70" href="pm_8drush_8inc.html#a836eda9c253a0e7edd01c683fe2d6d00" title="drush_pm_disable" alt="" coords="224,1955,349,1984"/><area shape="rect" id="node72" href="pm_8drush_8inc.html#a61ebecaa80b51380169ddd81f751f0df" title="drush_pm_list" alt="" coords="487,983,588,1012"/><area shape="rect" id="node74" href="pm_8drush_8inc.html#a89e844acc44eb017c1a12840164316af" title="drush_pm_uninstall" alt="" coords="220,2008,353,2037"/><area shape="rect" id="node77" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="716,1184,823,1213"/><area shape="rect" id="node79" href="user_8drush_8inc.html#a2a734fb7b01da25df72010674f07fb1d" title="drush_user_cancel" alt="" coords="472,1036,603,1065"/><area shape="rect" id="node82" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="268,760,305,789"/><area shape="rect" id="node88" href="test_8drush_8inc.html#ae25259420aa03c34eddc837befcf0df4" title="simpletest_drush_run_test" alt="" coords="451,1089,624,1119"/><area shape="rect" id="node94" href="updatexml_8inc.html#a4c90192cc502c7c05a5b4554c7d50258" title="release_info_print\l_releasenotes" alt="" coords="476,1142,599,1189"/><area shape="rect" id="node97" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="469,1211,605,1258"/><area shape="rect" id="node104" href="image_8drush_8inc.html#a1851fe97c792db56d16ed71421671f5a" title="image_drush_help_alter" alt="" coords="208,2061,365,2091"/><area shape="rect" id="node106" href="image_8drush_8inc.html#a2dc93132bd3c21ad6e474a9d6a241722" title="image_image_flush_complete" alt="" coords="189,2115,384,2144"/><area shape="rect" id="node108" href="pm_8drush_8inc.html#a66b0def0d14711d5c10884363c8ae1b5" title="pm_parse_project_version" alt="" coords="200,2168,373,2197"/><area shape="rect" id="node112" href="sql_8drush_8inc.html#a848630530acc79df2b73d73df3feb131" title="sql_drush_help_alter" alt="" coords="216,2221,357,2251"/><area shape="rect" id="node115" href="includes_2drupal_8inc.html#ac194fb53f4e5500f275a2debb0dfc608" title="system_watchdog" alt="" coords="223,2275,351,2304"/><area shape="rect" id="node117" href="test_8drush_8inc.html#a7072eebfd71d67302d4a81a871546f58" title="test_drush_help_alter" alt="" coords="213,2328,360,2357"/><area shape="rect" id="node119" href="user_8drush_8inc.html#ad28312594bc9f90055fd3a5ccdb7a3e5" title="user_drush_help_alter" alt="" coords="212,2381,361,2411"/><area shape="rect" id="node9" href="commands_2core_2drupal_2batch_8inc.html#afa58efbd11be795ce39d4d14f4ac35e0" title="_drush_batch_command" alt="" coords="456,176,619,205"/><area shape="rect" id="node23" href="generate_8make_8inc.html#affbdb849f1d2299740a4ea789ef29bfb" title="drush_make_generate" alt="" coords="463,1384,612,1413"/><area shape="rect" id="node27" href="info_8pm_8inc.html#a979f36be571c082a364025ae4bce438b" title="drush_pm_info" alt="" coords="484,332,591,361"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad1b1feb800eb96bd22b0e9179ef79c86"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_drupal_parse_info_file </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Parse Drupal info file format.</p>
<p>Copied with modifications from includes/common.inc.</p>
<dl class="section see"><dt>See Also</dt><dd>drupal_parse_info_file </dd></dl>

<p>Definition at line <a class="el" href="includes_2drupal_8inc_source.html#l00167">167</a> of file <a class="el" href="includes_2drupal_8inc_source.html">drupal.inc</a>.</p>

<p>References <a class="el" href="includes_2drupal_8inc_source.html#l00179">_drush_drupal_parse_info_file()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_ad1b1feb800eb96bd22b0e9179ef79c86_cgraph.png" border="0" usemap="#includes_2drupal_8inc_ad1b1feb800eb96bd22b0e9179ef79c86_cgraph" alt=""/></div>
<map name="includes_2drupal_8inc_ad1b1feb800eb96bd22b0e9179ef79c86_cgraph" id="includes_2drupal_8inc_ad1b1feb800eb96bd22b0e9179ef79c86_cgraph">
<area shape="rect" id="node3" href="includes_2drupal_8inc.html#a47c8064fb8f359786a3bddaf55cd9953" title="_drush_drupal_parse\l_info_file" alt="" coords="191,5,332,51"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a203e989fd043d054d774954e2b2dff21"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_drupal_version </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$drupal_root</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Detects the version number of the current Drupal installation, if any. Returns FALSE if there is no current Drupal installation, or it is somehow broken.</p>
<dl class="section return"><dt>Returns</dt><dd>A string containing the version number of the current Drupal installation, if any. Otherwise, return FALSE. </dd></dl>

<p>Definition at line <a class="el" href="includes_2drupal_8inc_source.html#l00028">28</a> of file <a class="el" href="includes_2drupal_8inc_source.html">drupal.inc</a>.</p>

<p>References <a class="el" href="includes_2drupal_8inc_source.html#l00011">drush_drupal_load_autoloader()</a>, and <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00452">_drush_bootstrap_drupal_root()</a>, <a class="el" href="generate_8make_8inc_source.html#l00043">_drush_make_generate_projects()</a>, <a class="el" href="archive_8drush_8inc_source.html#l00439">drush_archive_guess_manifest()</a>, <a class="el" href="includes_2drupal_8inc_source.html#l00077">drush_drupal_major_version()</a>, and <a class="el" href="pm_8drush_8inc_source.html#l00533">drush_get_projects()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_a203e989fd043d054d774954e2b2dff21_cgraph.png" border="0" usemap="#includes_2drupal_8inc_a203e989fd043d054d774954e2b2dff21_cgraph" alt=""/></div>
<map name="includes_2drupal_8inc_a203e989fd043d054d774954e2b2dff21_cgraph" id="includes_2drupal_8inc_a203e989fd043d054d774954e2b2dff21_cgraph">
<area shape="rect" id="node3" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="200,5,395,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="233,59,361,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_a203e989fd043d054d774954e2b2dff21_icgraph.png" border="0" usemap="#includes_2drupal_8inc_a203e989fd043d054d774954e2b2dff21_icgraph" alt=""/></div>
<map name="includes_2drupal_8inc_a203e989fd043d054d774954e2b2dff21_icgraph" id="includes_2drupal_8inc_a203e989fd043d054d774954e2b2dff21_icgraph">
<area shape="rect" id="node3" href="lib_2Drush_2Boot_2bootstrap_8inc.html#aaf2547972243d700b69f6ca272691cda" title="_drush_bootstrap_drupal_root" alt="" coords="647,72,839,101"/><area shape="rect" id="node5" href="generate_8make_8inc.html#aa4ffaa2643ef640c4768f3635bba29a1" title="_drush_make_generate\l_projects" alt="" coords="896,116,1053,163"/><area shape="rect" id="node9" href="archive_8drush_8inc.html#a51085ff955b6905e494c7da6cd84e028" title="drush_archive_guess\l_manifest" alt="" coords="201,172,345,219"/><area shape="rect" id="node13" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="207,1256,340,1303"/><area shape="rect" id="node93" href="group__extensions.html#gadf92772f6521fbc75a53ccec7e5e007e" title="drush_get_projects" alt="" coords="677,125,808,154"/><area shape="rect" id="node7" href="generate_8make_8inc.html#affbdb849f1d2299740a4ea789ef29bfb" title="drush_make_generate" alt="" coords="1103,125,1252,154"/><area shape="rect" id="node11" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="668,672,817,701"/><area shape="rect" id="node15" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="415,1623,569,1670"/><area shape="rect" id="node17" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="668,1598,817,1644"/><area shape="rect" id="node19" href="commands_2core_2drupal_2batch_8inc.html#a1e3ba040027e50c90258295d7a70aec0" title="_drush_batch_finished" alt="" coords="416,1693,568,1722"/><area shape="rect" id="node21" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7c56e6f89536dda612fc28dc84734b70" title="_drush_bootstrap_drupal\l_configuration" alt="" coords="411,1746,573,1792"/><area shape="rect" id="node23" href="lib_2Drush_2Boot_2bootstrap_8inc.html#ac68b770de9be77b990364cf8cd7f25b9" title="_drush_bootstrap_drupal\l_database" alt="" coords="661,724,824,771"/><area shape="rect" id="node25" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adc30118a77a2f8c97e22215bd5d2ac08" title="_drush_bootstrap_drupal_full" alt="" coords="399,1816,585,1845"/><area shape="rect" id="node29" href="info_8pm_8inc.html#ad8628d53d40f2db788ec0bec2f9ac62e" title="_drush_pm_info_module" alt="" coords="411,1869,573,1898"/><area shape="rect" id="node31" href="info_8pm_8inc.html#ac066152dd0bc2eed6c7284336aebe62e" title="_drush_pm_info_theme" alt="" coords="413,1922,571,1952"/><area shape="rect" id="node33" href="download_8pm_8inc.html#a6fd957d1eb7a2b91bcd4b4662371200a" title="_pm_download_destination\l_lookup" alt="" coords="653,794,832,840"/><area shape="rect" id="node37" href="includes_2batch_8inc.html#af470f96043a86e75e72cb186abf518ce" title="drush_batch_command" alt="" coords="413,1976,571,2005"/><area shape="rect" id="node39" href="core_8drush_8inc.html#aa4653becec42d140691bb014e52e8145" title="drush_core_cron" alt="" coords="684,864,801,893"/><area shape="rect" id="node41" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="669,917,816,946"/><area shape="rect" id="node43" href="core_8drush_8inc.html#a29b2ff77f4ca8032f23039c5d835c7ad" title="drush_core_updatedb\l_batch_process" alt="" coords="419,2028,565,2075"/><area shape="rect" id="node45" href="core_8drush_8inc.html#aefd8feb109bb44eb6543dbd18f64b91b" title="drush_core_updatedb\l_status" alt="" coords="669,970,816,1016"/><area shape="rect" id="node47" href="group__dbfunctions.html#ga67f2a8891d0642284b856f8d90fa768d" title="drush_db_delete" alt="" coords="433,2098,551,2128"/><area shape="rect" id="node49" href="group__dbfunctions.html#ga4cd1e1df83196d9a69084246703c9057" title="drush_db_fetch_object" alt="" coords="416,2152,568,2181"/><area shape="rect" id="node51" href="group__dbfunctions.html#ga5e868125411566a8b7f72cb2140bf45f" title="drush_db_result" alt="" coords="435,2205,549,2234"/><area shape="rect" id="node53" href="group__dbfunctions.html#gaaf67a267a19ac63f7eb05721b2170f89" title="drush_db_select" alt="" coords="433,2258,551,2288"/><area shape="rect" id="node55" href="includes_2environment_8inc.html#a6f651473a044c97c2a17e63e6455d08e" title="drush_drupal_sitewide\l_directory" alt="" coords="417,2311,567,2358"/><area shape="rect" id="node57" href="includes_2command_8inc.html#a70fb51b1b660ded588045e6fa4bda385" title="drush_enforce_requirement_core" alt="" coords="637,1040,848,1069"/><area shape="rect" id="node59" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="433,2432,551,2461"/><area shape="rect" id="node61" href="includes_2environment_8inc.html#adbd40db8b61325ed439ffe618f56282a" title="drush_valid_db_credentials" alt="" coords="653,2406,832,2436"/><area shape="rect" id="node63" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="441,1368,543,1397"/><area shape="rect" id="node65" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af" title="drush_sql_sanitize" alt="" coords="677,1338,808,1368"/><area shape="rect" id="node67" href="engines_8inc.html#af4e4689479142932fa789c5e314d29e9" title="drush_load_command\l_engine" alt="" coords="668,1092,817,1139"/><area shape="rect" id="node69" href="environment__7_8inc.html#a7d1f0d019005c0d633c8179e9be163cb" title="drush_module_uninstall" alt="" coords="413,2485,571,2514"/><area shape="rect" id="node71" href="pm_8drush_8inc.html#a836eda9c253a0e7edd01c683fe2d6d00" title="drush_pm_disable" alt="" coords="429,280,555,309"/><area shape="rect" id="node73" href="pm_8drush_8inc.html#a61ebecaa80b51380169ddd81f751f0df" title="drush_pm_list" alt="" coords="692,1162,793,1192"/><area shape="rect" id="node75" href="pm_8drush_8inc.html#a89e844acc44eb017c1a12840164316af" title="drush_pm_uninstall" alt="" coords="425,333,559,362"/><area shape="rect" id="node78" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="921,1494,1028,1524"/><area shape="rect" id="node80" href="user_8drush_8inc.html#a2a734fb7b01da25df72010674f07fb1d" title="drush_user_cancel" alt="" coords="677,1216,808,1245"/><area shape="rect" id="node83" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="473,1010,511,1040"/><area shape="rect" id="node89" href="test_8drush_8inc.html#ae25259420aa03c34eddc837befcf0df4" title="simpletest_drush_run_test" alt="" coords="656,1469,829,1498"/><area shape="rect" id="node97" href="updatexml_8inc.html#a4c90192cc502c7c05a5b4554c7d50258" title="release_info_print\l_releasenotes" alt="" coords="681,1268,804,1315"/><area shape="rect" id="node100" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="675,1394,811,1440"/><area shape="rect" id="node107" href="image_8drush_8inc.html#a1851fe97c792db56d16ed71421671f5a" title="image_drush_help_alter" alt="" coords="413,386,571,416"/><area shape="rect" id="node109" href="image_8drush_8inc.html#a2dc93132bd3c21ad6e474a9d6a241722" title="image_image_flush_complete" alt="" coords="395,440,589,469"/><area shape="rect" id="node111" href="pm_8drush_8inc.html#a66b0def0d14711d5c10884363c8ae1b5" title="pm_parse_project_version" alt="" coords="405,493,579,522"/><area shape="rect" id="node115" href="sql_8drush_8inc.html#a848630530acc79df2b73d73df3feb131" title="sql_drush_help_alter" alt="" coords="421,546,563,576"/><area shape="rect" id="node118" href="includes_2drupal_8inc.html#ac194fb53f4e5500f275a2debb0dfc608" title="system_watchdog" alt="" coords="428,600,556,629"/><area shape="rect" id="node120" href="test_8drush_8inc.html#a7072eebfd71d67302d4a81a871546f58" title="test_drush_help_alter" alt="" coords="419,653,565,682"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ac194fb53f4e5500f275a2debb0dfc608"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">system_watchdog </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$log_entry</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Log Drupal watchdog() calls.</p>
<p>A sneaky implementation of hook_watchdog(). </p>

<p>Definition at line <a class="el" href="includes_2drupal_8inc_source.html#l00093">93</a> of file <a class="el" href="includes_2drupal_8inc_source.html">drupal.inc</a>.</p>

<p>References <a class="el" href="includes_2drupal_8inc_source.html#l00077">drush_drupal_major_version()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="engines_8inc_source.html#l00479">drush_include_engine()</a>, <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, <a class="el" href="output_8inc_source.html#l00026">drush_print()</a>, and <a class="el" href="commands_2core_2drupal_2environment_8inc_source.html#l00292">drush_watchdog_severity_levels()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2drupal_8inc_ac194fb53f4e5500f275a2debb0dfc608_cgraph.png" border="0" usemap="#includes_2drupal_8inc_ac194fb53f4e5500f275a2debb0dfc608_cgraph" alt=""/></div>
<map name="includes_2drupal_8inc_ac194fb53f4e5500f275a2debb0dfc608_cgraph" id="includes_2drupal_8inc_ac194fb53f4e5500f275a2debb0dfc608_cgraph">
<area shape="rect" id="node3" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="844,420,977,466"/><area shape="rect" id="node11" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="405,35,525,64"/><area shape="rect" id="node18" href="engines_8inc.html#a91df31f18b0a1d05540ccaf85e6d9a88" title="drush_include_engine" alt="" coords="193,296,340,326"/><area shape="rect" id="node33" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="872,90,949,119"/><area shape="rect" id="node51" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="224,87,309,116"/><area shape="rect" id="node54" href="commands_2core_2drupal_2environment_8inc.html#ae44a69423e59e63b8acd6dadc602081d" title="drush_watchdog_severity\l_levels" alt="" coords="181,556,352,602"/><area shape="rect" id="node5" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1059,388,1203,418"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1259,388,1453,418"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1292,167,1420,196"/><area shape="rect" id="node13" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="611,34,739,63"/><area shape="rect" id="node16" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="600,87,749,116"/><area shape="rect" id="node20" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="400,296,531,326"/><area shape="rect" id="node26" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="619,191,731,220"/><area shape="rect" id="node37" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="656,402,693,431"/><area shape="rect" id="node47" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="415,439,516,468"/><area shape="rect" id="node22" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="580,244,769,274"/><area shape="rect" id="node40" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1052,270,1209,299"/><area shape="rect" id="node43" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="599,348,751,378"/><area shape="rect" id="node24" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="820,244,1001,274"/><area shape="rect" id="node30" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1053,140,1208,170"/></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>