Drush: commands/pm/update_info/drupal_6.inc File Reference

  1. 7.x doxygen/html/drupal__6_8inc.html
  2. master doxygen/html/drupal__6_8inc.html
drupal_6.inc File Reference

Go to the source code of this file.

Functions

 pm_update_filter (&$project)
 pm_update_last_check ()
 _pm_refresh ()
 _pm_get_update_info ($projects)

Detailed Description

Implementation of 'drupal' update_info engine for Drupal 6.

Definition in file drupal_6.inc.

Function Documentation

_pm_get_update_info (   $projects)

Get update information for all installed projects.

Returns
An array containing remote and local versions for all installed projects.

Definition at line 83 of file drupal_6.inc.

References _pm_refresh().

Here is the call graph for this function:

_pm_refresh ( )

Command callback. Refresh update status information.

Definition at line 71 of file drupal_6.inc.

References drush_print(), and dt().

Here is the call graph for this function:

pm_update_filter ( $project)

Returns a human readable message based on update status of a project.

It also may alter the project object and set $project['updateable'] and $project['candidate_version'].

See Also
pm_release_recommended()

Project statuses in Drupal 6 are:

  • UPDATE_NOT_SECURE
  • UPDATE_REVOKED
  • UPDATE_NOT_SUPPORTED
  • UPDATE_NOT_CURRENT
  • UPDATE_CURRENT
  • UPDATE_NOT_CHECKED
  • UPDATE_UNKNOWN
  • UPDATE_NOT_FETCHED

Definition at line 27 of file drupal_6.inc.

References dt(), and pm_release_recommended().

Here is the call graph for this function:

pm_update_last_check ( )

Returns time of last check of available updates.

Definition at line 64 of file drupal_6.inc.

File

doxygen/html/drupal__6_8inc.html
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: commands/pm/update_info/drupal_6.inc File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_afac61274991793aa7e9133a8f4f291e.html">commands</a></li><li class="navelem"><a class="el" href="dir_15591510fc66414792ea8adada328324.html">pm</a></li><li class="navelem"><a class="el" href="dir_bb389c959ae58a652132c9d3301eb53c.html">update_info</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_6.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="drupal__6_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:abd7fdb8f03e60e909fba225012233142"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drupal__6_8inc.html#abd7fdb8f03e60e909fba225012233142">pm_update_filter</a> (&amp;$project)</td></tr>
<tr class="memitem:a35cf870938c0ecdd3e2cead6aec212d2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drupal__6_8inc.html#a35cf870938c0ecdd3e2cead6aec212d2">pm_update_last_check</a> ()</td></tr>
<tr class="memitem:ac0ebe2ccf9fef03ac2038f783321b8d5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drupal__6_8inc.html#ac0ebe2ccf9fef03ac2038f783321b8d5">_pm_refresh</a> ()</td></tr>
<tr class="memitem:afa1132bbe8f4d56b787a9a93d4971871"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drupal__6_8inc.html#afa1132bbe8f4d56b787a9a93d4971871">_pm_get_update_info</a> ($projects)</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Implementation of 'drupal' update_info engine for Drupal 6. </p>

<p>Definition in file <a class="el" href="drupal__6_8inc_source.html">drupal_6.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="afa1132bbe8f4d56b787a9a93d4971871"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_pm_get_update_info </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$projects</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get update information for all installed projects.</p>
<dl class="section return"><dt>Returns</dt><dd>An array containing remote and local versions for all installed projects. </dd></dl>

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

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

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drupal__6_8inc_afa1132bbe8f4d56b787a9a93d4971871_cgraph.png" border="0" usemap="#drupal__6_8inc_afa1132bbe8f4d56b787a9a93d4971871_cgraph" alt=""/></div>
<map name="drupal__6_8inc_afa1132bbe8f4d56b787a9a93d4971871_cgraph" id="drupal__6_8inc_afa1132bbe8f4d56b787a9a93d4971871_cgraph">
<area shape="rect" id="node3" href="commands_2pm_2update__info_2drupal_8inc.html#ac0ebe2ccf9fef03ac2038f783321b8d5" title="_pm_refresh" alt="" coords="201,121,295,151"/><area shape="rect" id="node5" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="345,93,431,123"/><area shape="rect" id="node15" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="369,148,407,177"/><area shape="rect" id="node7" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="488,69,608,99"/><area shape="rect" id="node9" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="676,5,804,35"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="897,84,1025,113"/><area shape="rect" id="node13" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="665,109,815,139"/><area shape="rect" id="node17" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="481,143,615,190"/><area shape="rect" id="node19" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="668,163,812,192"/><area shape="rect" id="node21" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="864,163,1059,192"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ac0ebe2ccf9fef03ac2038f783321b8d5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_pm_refresh </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Command callback. Refresh update status information. </p>

<p>Definition at line <a class="el" href="drupal__6_8inc_source.html#l00071">71</a> of file <a class="el" href="drupal__6_8inc_source.html">drupal_6.inc</a>.</p>

<p>References <a class="el" href="output_8inc_source.html#l00026">drush_print()</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="drupal__6_8inc_ac0ebe2ccf9fef03ac2038f783321b8d5_cgraph.png" border="0" usemap="#drupal__6_8inc_ac0ebe2ccf9fef03ac2038f783321b8d5_cgraph" alt=""/></div>
<map name="drupal__6_8inc_ac0ebe2ccf9fef03ac2038f783321b8d5_cgraph" id="drupal__6_8inc_ac0ebe2ccf9fef03ac2038f783321b8d5_cgraph">
<area shape="rect" id="node3" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="151,93,236,123"/><area shape="rect" id="node13" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="175,148,212,177"/><area shape="rect" id="node5" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="293,69,413,99"/><area shape="rect" id="node7" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="481,5,609,35"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="703,84,831,113"/><area shape="rect" id="node11" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="471,109,620,139"/><area shape="rect" id="node15" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="287,143,420,190"/><area shape="rect" id="node17" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="473,163,617,192"/><area shape="rect" id="node19" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="669,163,864,192"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="abd7fdb8f03e60e909fba225012233142"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pm_update_filter </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$project</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a human readable message based on update status of a project.</p>
<p>It also may alter the project object and set $project['updateable'] and $project['candidate_version'].</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="updatestatus_8pm_8inc.html#a5cb9b6532e505c344200fa32a29c5868">pm_release_recommended()</a></dd></dl>
<p>Project statuses in Drupal 6 are:</p>
<ul>
<li>UPDATE_NOT_SECURE</li>
<li>UPDATE_REVOKED</li>
<li>UPDATE_NOT_SUPPORTED</li>
<li>UPDATE_NOT_CURRENT</li>
<li>UPDATE_CURRENT</li>
<li>UPDATE_NOT_CHECKED</li>
<li>UPDATE_UNKNOWN</li>
<li>UPDATE_NOT_FETCHED </li>
</ul>

<p>Definition at line <a class="el" href="drupal__6_8inc_source.html#l00027">27</a> of file <a class="el" href="drupal__6_8inc_source.html">drupal_6.inc</a>.</p>

<p>References <a class="el" href="output_8inc_source.html#l00145">dt()</a>, and <a class="el" href="updatestatus_8pm_8inc_source.html#l00184">pm_release_recommended()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="drupal__6_8inc_abd7fdb8f03e60e909fba225012233142_cgraph.png" border="0" usemap="#drupal__6_8inc_abd7fdb8f03e60e909fba225012233142_cgraph" alt=""/></div>
<map name="drupal__6_8inc_abd7fdb8f03e60e909fba225012233142_cgraph" id="drupal__6_8inc_abd7fdb8f03e60e909fba225012233142_cgraph">
<area shape="rect" id="node3" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="244,32,281,61"/><area shape="rect" id="node13" href="updatestatus_8pm_8inc.html#a5cb9b6532e505c344200fa32a29c5868" title="pm_release_recommended" alt="" coords="173,85,352,115"/><area shape="rect" id="node5" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="401,23,535,70"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="585,32,729,61"/><area shape="rect" id="node9" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="779,5,973,35"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="812,59,940,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a35cf870938c0ecdd3e2cead6aec212d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pm_update_last_check </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns time of last check of available updates. </p>

<p>Definition at line <a class="el" href="drupal__6_8inc_source.html#l00064">64</a> of file <a class="el" href="drupal__6_8inc_source.html">drupal_6.inc</a>.</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>