| 1 |
<?php |
<?php |
| 2 |
// $Id: xmlsitemap.module,v 1.20.2.45.2.112 2009/10/03 21:54:45 davereid Exp $ |
// $Id: xmlsitemap.module,v 1.20.2.45.2.113 2009/11/01 16:11:34 davereid Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @defgroup xmlsitemap XML sitemap: create sitemaps.org sitemaps. |
* @defgroup xmlsitemap XML sitemap: create sitemaps.org sitemaps. |
| 61 |
if (!$checked && arg(0) == 'admin' && strpos($path, 'xmlsitemap') !== FALSE) { |
if (!$checked && arg(0) == 'admin' && strpos($path, 'xmlsitemap') !== FALSE) { |
| 62 |
$checked = TRUE; |
$checked = TRUE; |
| 63 |
module_load_install('xmlsitemap'); |
module_load_install('xmlsitemap'); |
| 64 |
xmlsitemap_check_status(); |
if (xmlsitemap_check_status() && user_access('administer site configuration')) { |
| 65 |
|
drupal_set_message($t('One or more problems were detected with your XML sitemap configuration. Please check the <a href="@status-report">status report</a> for more information.', array('@status-report' => url('admin/reports/status'))), 'error', FALSE); |
| 66 |
|
} |
| 67 |
module_load_include('inc', 'xmlsitemap'); |
module_load_include('inc', 'xmlsitemap'); |
| 68 |
if ($blurb = _xmlsitemap_get_blurb()) { |
if ($blurb = _xmlsitemap_get_blurb()) { |
| 69 |
$output .= '<div class="form-item"><div class="description">' . $blurb . '</div></div>'; |
$output .= '<div class="form-item"><div class="description">' . $blurb . '</div></div>'; |