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

Diff of /contributions/modules/xmlsitemap/xmlsitemap.install

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

revision 1.5.2.38.2.57, Sun Nov 1 16:11:34 2009 UTC revision 1.5.2.38.2.58, Sun Nov 1 19:00:35 2009 UTC
# Line 1  Line 1 
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
# Line 96  function xmlsitemap_requirements($phase) Line 96  function xmlsitemap_requirements($phase)
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) {
# Line 107  function xmlsitemap_check_status($return Line 107  function xmlsitemap_check_status($return
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    

Legend:
Removed from v.1.5.2.38.2.57  
changed lines
  Added in v.1.5.2.38.2.58

  ViewVC Help
Powered by ViewVC 1.1.2