| 1 |
<?php |
<?php |
| 2 |
// $Id: xmlsitemap.install,v 1.5.2.38.2.56 2009/10/03 22:38:22 davereid Exp $ |
// $Id: xmlsitemap.install,v 1.5.2.38.2.57 2009/11/01 16:11:34 davereid Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 96 |
* @return |
* @return |
| 97 |
* TRUE if there is a warning or error requirement, or FALSE otherwise. |
* TRUE if there is a warning or error requirement, or FALSE otherwise. |
| 98 |
*/ |
*/ |
| 99 |
function xmlsitemap_check_status($return = FALSE) { |
function xmlsitemap_check_status() { |
| 100 |
$severity = REQUIREMENT_OK; |
$severity = REQUIREMENT_OK; |
| 101 |
|
|
| 102 |
foreach (module_implements('requirements') as $module) { |
foreach (module_implements('requirements') as $module) { |
| 107 |
} |
} |
| 108 |
} |
} |
| 109 |
|
|
|
if (!$return && $severity == REQUIREMENT_ERROR && user_access('administer site configuration')) { |
|
|
$t = get_t(); |
|
|
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); |
|
|
} |
|
|
|
|
| 110 |
return $severity == REQUIREMENT_ERROR; |
return $severity == REQUIREMENT_ERROR; |
| 111 |
} |
} |
| 112 |
|
|