Drush: commands/core/drupal/update_7.inc File Reference

  1. 7.x doxygen/html/update__7_8inc.html
  2. master doxygen/html/update__7_8inc.html
update_7.inc File Reference

Go to the source code of this file.

Functions

 update_extra_requirements ($requirements=NULL)
 drush_update_do_one ($module, $number, $dependency_map, &$context)
 update_check_requirements ()
 update_main_prepare ()
 update_main ()
 _update_batch_command ($id)
 drush_update_batch ($start)
 drush_update_finished ($success, $results, $operations)
 updatedb_status ()

Variables

const MAINTENANCE_MODE = 'update'

Detailed Description

Update.php for provisioned sites. This file is a derivative of the standard drupal update.php, which has been modified to allow being run from the command line.

Definition in file update_7.inc.

Function Documentation

drush_update_batch (   $start)

Start the database update batch process.

Parameters
$startAn array of all the modules and which update to start at.
$redirectPath to redirect to when the batch has finished processing.
$urlURL of the batch processing page (should only be used for separate scripts like update.php).
$batchOptional parameters to pass into the batch API.
$redirect_callback(optional) Specify a function to be called to redirect to the progressive processing page.

Definition at line 265 of file update_7.inc.

References drush_backend_batch_process().

Here is the call graph for this function:

drush_update_do_one (   $module,
  $number,
  $dependency_map,
$context 
)

Perform one update and store the results which will later be displayed on the finished page.

An update function can force the current and all later updates for this module to abort by returning a $ret array with an element like: $ret['#abort'] = array('success' => FALSE, 'query' => 'What went wrong'); The schema version will not be updated in this case, and all the aborted updates will continue to appear on update.php as updates that have not yet been run.

Parameters
$moduleThe module whose update will be run.
$numberThe update number to run.
$contextThe batch context array

Definition at line 56 of file update_7.inc.

References drush_log(), and drush_set_error().

Here is the call graph for this function:

update_check_requirements ( )

Check update requirements and report any errors.

Definition at line 126 of file update_7.inc.

References update_extra_requirements().

Here is the call graph for this function:

update_extra_requirements (   $requirements = NULL)

Drupal's update.inc has functions that are in previous update_X.inc files for example, update_check_incompatibility() which can prove useful when enabling modules. Returns (and optionally stores) extra requirements that only apply during particular parts of the update.php process.

Definition at line 30 of file update_7.inc.

Referenced by update_check_requirements().

Here is the caller graph for this function:

updatedb_status ( )

Return a 2 item array with

  • an array where each item is a 3 item associative array describing a pending update.
  • an array listing the first update to run, keyed by module.

Definition at line 318 of file update_7.inc.

Variable Documentation

const MAINTENANCE_MODE = 'update'

Global flag to identify update.php run, and so avoid various unwanted operations, such as hook_init() and hook_exit() invokes, css/js preprocessing and translation, and solve some theming issues. This flag is checked on several places in Drupal code (not just update.php).

Definition at line 18 of file update_7.inc.

File

doxygen/html/update__7_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/drupal/update_7.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><li class="navelem"><a class="el" href="dir_124c2f0cfa86b0affb712ae9b365039b.html">drupal</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">update_7.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="update__7_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:a0c14cba656eed6f94996df5798223b9a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__7_8inc.html#a0c14cba656eed6f94996df5798223b9a">update_extra_requirements</a> ($requirements=NULL)</td></tr>
<tr class="memitem:a7037652ade962feda993c9ddd041a950"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__7_8inc.html#a7037652ade962feda993c9ddd041a950">drush_update_do_one</a> ($module, $number, $dependency_map, &amp;$context)</td></tr>
<tr class="memitem:ad0b8cf7510033800502402c275add53b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__7_8inc.html#ad0b8cf7510033800502402c275add53b">update_check_requirements</a> ()</td></tr>
<tr class="memitem:acc82fc21a65c793b32cb4a75d836d030"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acc82fc21a65c793b32cb4a75d836d030"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>update_main_prepare</b> ()</td></tr>
<tr class="memitem:a574648d51380ddfa3be7b236754054e9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a574648d51380ddfa3be7b236754054e9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>update_main</b> ()</td></tr>
<tr class="memitem:aaed89a38f4f9ba9d8a82bffe44539bdf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaed89a38f4f9ba9d8a82bffe44539bdf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>_update_batch_command</b> ($id)</td></tr>
<tr class="memitem:acb7719984816f5c3fcf003a93e8a9947"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__7_8inc.html#acb7719984816f5c3fcf003a93e8a9947">drush_update_batch</a> ($start)</td></tr>
<tr class="memitem:ad6ef60e0ddad8b4b6b4321c4c5b0e003"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad6ef60e0ddad8b4b6b4321c4c5b0e003"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_update_finished</b> ($success, $results, $operations)</td></tr>
<tr class="memitem:ad074fc63b51c042f4d752543db9ad0e6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__7_8inc.html#ad074fc63b51c042f4d752543db9ad0e6">updatedb_status</a> ()</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a0849e56e1546e2b900cf36ef28e36e9f"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__7_8inc.html#a0849e56e1546e2b900cf36ef28e36e9f">MAINTENANCE_MODE</a> = 'update'</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Update.php for provisioned sites. This file is a derivative of the standard drupal update.php, which has been modified to allow being run from the command line. </p>

<p>Definition in file <a class="el" href="update__7_8inc_source.html">update_7.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="acb7719984816f5c3fcf003a93e8a9947"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_update_batch </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$start</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Start the database update batch process.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$start</td><td>An array of all the modules and which update to start at. </td></tr>
    <tr><td class="paramname">$redirect</td><td>Path to redirect to when the batch has finished processing. </td></tr>
    <tr><td class="paramname">$url</td><td>URL of the batch processing page (should only be used for separate scripts like update.php). </td></tr>
    <tr><td class="paramname">$batch</td><td>Optional parameters to pass into the batch API. </td></tr>
    <tr><td class="paramname">$redirect_callback</td><td>(optional) Specify a function to be called to redirect to the progressive processing page. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="update__7_8inc_source.html#l00265">265</a> of file <a class="el" href="update__7_8inc_source.html">update_7.inc</a>.</p>

<p>References <a class="el" href="includes_2batch_8inc_source.html#l00075">drush_backend_batch_process()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update__7_8inc_acb7719984816f5c3fcf003a93e8a9947_cgraph.png" border="0" usemap="#update__7_8inc_acb7719984816f5c3fcf003a93e8a9947_cgraph" alt=""/></div>
<map name="update__7_8inc_acb7719984816f5c3fcf003a93e8a9947_cgraph" id="update__7_8inc_acb7719984816f5c3fcf003a93e8a9947_cgraph">
<area shape="rect" id="node3" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="192,259,341,306"/><area shape="rect" id="node5" href="engines_8inc.html#a92390a2dd40c8ed5190be4af058813a8" title="drush_include_engine" alt="" coords="391,241,537,271"/><area shape="rect" id="node61" href="user_8drush_8inc.html#a9391875688c0d7b0ba392d6e0adbe704" title="drush_user_get_class" alt="" coords="389,295,539,324"/><area shape="rect" id="node7" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="587,112,717,141"/><area shape="rect" id="node13" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="805,165,917,195"/><area shape="rect" id="node33" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="843,245,880,275"/><area shape="rect" id="node49" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="601,267,703,296"/><area shape="rect" id="node56" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="593,320,711,349"/><area shape="rect" id="node9" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="767,59,956,88"/><area shape="rect" id="node45" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="783,112,940,141"/><area shape="rect" id="node47" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="785,5,937,35"/><area shape="rect" id="node11" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1007,59,1188,88"/><area shape="rect" id="node15" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1647,189,1775,219"/><area shape="rect" id="node18" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1437,163,1592,192"/><area shape="rect" id="node21" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1059,213,1136,243"/><area shape="rect" id="node23" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1268,215,1353,244"/><area shape="rect" id="node26" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1467,267,1563,296"/><area shape="rect" id="node28" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1660,293,1761,323"/><area shape="rect" id="node30" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1825,293,1959,323"/><area shape="rect" id="node35" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1031,319,1164,366"/><area shape="rect" id="node43" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1028,267,1167,296"/><area shape="rect" id="node37" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1239,328,1383,357"/><area shape="rect" id="node40" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1432,371,1597,400"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7037652ade962feda993c9ddd041a950"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_update_do_one </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$module</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$dependency_map</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Perform one update and store the results which will later be displayed on the finished page.</p>
<p>An update function can force the current and all later updates for this module to abort by returning a $ret array with an element like: $ret['#abort'] = array('success' =&gt; FALSE, 'query' =&gt; 'What went wrong'); The schema version will not be updated in this case, and all the aborted updates will continue to appear on update.php as updates that have not yet been run.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$module</td><td>The module whose update will be run. </td></tr>
    <tr><td class="paramname">$number</td><td>The update number to run. </td></tr>
    <tr><td class="paramname">$context</td><td>The batch context array </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="update__7_8inc_source.html#l00056">56</a> of file <a class="el" href="update__7_8inc_source.html">update_7.inc</a>.</p>

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

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update__7_8inc_a7037652ade962feda993c9ddd041a950_cgraph.png" border="0" usemap="#update__7_8inc_a7037652ade962feda993c9ddd041a950_cgraph" alt=""/></div>
<map name="update__7_8inc_a7037652ade962feda993c9ddd041a950_cgraph" id="update__7_8inc_a7037652ade962feda993c9ddd041a950_cgraph">
<area shape="rect" id="node3" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="416,148,493,178"/><area shape="rect" id="node18" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="203,96,315,126"/><area shape="rect" id="node5" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="595,148,680,178"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="935,96,1063,126"/><area shape="rect" id="node9" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="759,200,855,230"/><area shape="rect" id="node15" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="729,96,884,126"/><area shape="rect" id="node11" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="948,200,1049,230"/><area shape="rect" id="node13" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1113,200,1247,230"/><area shape="rect" id="node21" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="364,44,545,74"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad0b8cf7510033800502402c275add53b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">update_check_requirements </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check update requirements and report any errors. </p>

<p>Definition at line <a class="el" href="update__7_8inc_source.html#l00126">126</a> of file <a class="el" href="update__7_8inc_source.html">update_7.inc</a>.</p>

<p>References <a class="el" href="update__7_8inc_source.html#l00030">update_extra_requirements()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update__7_8inc_ad0b8cf7510033800502402c275add53b_cgraph.png" border="0" usemap="#update__7_8inc_ad0b8cf7510033800502402c275add53b_cgraph" alt=""/></div>
<map name="update__7_8inc_ad0b8cf7510033800502402c275add53b_cgraph" id="update__7_8inc_ad0b8cf7510033800502402c275add53b_cgraph">
<area shape="rect" id="node3" href="update__7_8inc.html#a0c14cba656eed6f94996df5798223b9a" title="update_extra_requirements" alt="" coords="240,5,419,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0c14cba656eed6f94996df5798223b9a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">update_extra_requirements </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$requirements</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><a class="el" href="namespaceDrupal.html">Drupal</a>'s <a class="el" href="update_8inc.html">update.inc</a> has functions that are in previous update_X.inc files for example, update_check_incompatibility() which can prove useful when enabling modules. Returns (and optionally stores) extra requirements that only apply during particular parts of the update.php process. </p>

<p>Definition at line <a class="el" href="update__7_8inc_source.html#l00030">30</a> of file <a class="el" href="update__7_8inc_source.html">update_7.inc</a>.</p>

<p>Referenced by <a class="el" href="update__7_8inc_source.html#l00126">update_check_requirements()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update__7_8inc_a0c14cba656eed6f94996df5798223b9a_icgraph.png" border="0" usemap="#update__7_8inc_a0c14cba656eed6f94996df5798223b9a_icgraph" alt=""/></div>
<map name="update__7_8inc_a0c14cba656eed6f94996df5798223b9a_icgraph" id="update__7_8inc_a0c14cba656eed6f94996df5798223b9a_icgraph">
<area shape="rect" id="node3" href="update__7_8inc.html#ad0b8cf7510033800502402c275add53b" title="update_check_requirements" alt="" coords="233,5,417,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad074fc63b51c042f4d752543db9ad0e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">updatedb_status </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return a 2 item array with</p>
<ul>
<li>an array where each item is a 3 item associative array describing a pending update.</li>
<li>an array listing the first update to run, keyed by module. </li>
</ul>

<p>Definition at line <a class="el" href="update__7_8inc_source.html#l00318">318</a> of file <a class="el" href="update__7_8inc_source.html">update_7.inc</a>.</p>

</div>
</div>
<h2>Variable Documentation</h2>
<a class="anchor" id="a0849e56e1546e2b900cf36ef28e36e9f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const MAINTENANCE_MODE = 'update'</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Global flag to identify update.php run, and so avoid various unwanted operations, such as hook_init() and hook_exit() invokes, css/js preprocessing and translation, and solve some theming issues. This flag is checked on several places in <a class="el" href="namespaceDrupal.html">Drupal</a> code (not just update.php). </p>

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

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Nov 2 2016 07:29:21 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>