Download & Extend

show pr of current site on status page

Project:Google PageRank
Version:5.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Using hook_requirements(), the underlying structure is there to show the pagerank of the current site on the status report page at admin/logs/status.

<?php
/**
* Implementation of hook_requirements().
*
* Show the pagerank of the current site in the status report.
*/
function google_pr_requirements($phase) {
 
$requirements = array();
 
$t = get_t();
  if (
$phase == 'runtime') {
   
$pr = google_pr_get(url('<front>', NULL, NULL, TRUE));
   
$requirements['google_pr_rank'] = array(
     
'title' => $t('Google Pagerank'),
     
'value' => $pr,
     
'severity' => REQUIREMENT_INFO
   
);
  }
  return
$requirements;
}
?>

Comments

#1

Status:needs review» fixed

added in CVS revision 1.1.4.3

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here