/[drupal]/contributions/modules/xmlsitemap/xmlsitemap/xmlsitemap.module
ViewVC logotype

Diff of /contributions/modules/xmlsitemap/xmlsitemap/xmlsitemap.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.37, Sun Mar 1 01:57:45 2009 UTC revision 1.1.2.38, Sun Mar 1 04:42:36 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: xmlsitemap.module,v 1.1.2.36 2009/02/28 21:00:46 kiam Exp $  // $Id: xmlsitemap.module,v 1.1.2.37 2009/03/01 01:57:45 kiam Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 16  Line 16 
16   ****************************************************************************/   ****************************************************************************/
17    
18  /**  /**
19     * Implementation of hook_boot().
20     */
21    function xmlsitemap_boot() {
22      define('XMLSITEMAP_TIME', time());
23    }
24    
25    /**
26   * Implementation of hook_cron().   * Implementation of hook_cron().
27   */   */
28  function xmlsitemap_cron() {  function xmlsitemap_cron() {
# Line 202  function xmlsitemap_output($chunk = NULL Line 209  function xmlsitemap_output($chunk = NULL
209      $row = new stdClass();      $row = new stdClass();
210      $row->module = 'xmlsitemap';      $row->module = 'xmlsitemap';
211      $row->type = 'frontpage';      $row->type = 'frontpage';
212      $row->changed = time() - 1;      $row->changed = XMLSITEMAP_TIME - 1;
213      $row->changefreq = 1;      $row->changefreq = 1;
214      $row->priority = variable_get('xmlsitemap_front_page_priority', 1);      $row->priority = variable_get('xmlsitemap_front_page_priority', 1);
215      drupal_write_record('xmlsitemap', $row);      drupal_write_record('xmlsitemap', $row);

Legend:
Removed from v.1.1.2.37  
changed lines
  Added in v.1.1.2.38

  ViewVC Help
Powered by ViewVC 1.1.2