| 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 |
| 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() { |
| 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); |