@@ -90,7 +105,14 @@ function statistics_top_pages() {
}
/**
* Menu callback; presents the "top visitors" page.
* Page callback: Displays the "top visitors" page.
*
* This displays the pages with the top number of visitors in a given time
* interval that haven't been flushed yet. The flush interval is set on the
* statistics settings form, but is dependent on cron running.
*
* @return array
* A render array containing the top visitors information.
*/
functionstatistics_top_visitors(){
...
...
@@ -143,7 +165,14 @@ function statistics_top_visitors() {
}
/**
* Menu callback; presents the "referrer" page.
* Page callback: Displays the "top referrers" in the access logs.
*
* This displays the pages with the top referrers in a given time interval that
* haven't been flushed yet. The flush interval is set on the statistics
* settings form, but is dependent on cron running.
*
* @return array
* A render array containing the top referrers information.
*/
functionstatistics_top_referrers(){
drupal_set_title(t('Top referrers in the past %interval',array('%interval'=>format_interval(variable_get('statistics_flush_accesslog_timer',259200)))),PASS_THROUGH);
...
...
@@ -189,7 +218,14 @@ function statistics_top_referrers() {
}
/**
* Menu callback; Displays recent page accesses.
* Page callback: Gathers page access statistics suitable for rendering.
*
* @param int $aid
* The unique accesslog ID.
*
* @return array
* A render array containing page access statistics. If information for the
* page was not found, drupal_not_found() is called.
*/
functionstatistics_access_log($aid){
$access=db_query('SELECT a.*, u.name FROM {accesslog} a LEFT JOIN {users} u ON a.uid = u.uid WHERE aid = :aid',array(':aid'=>$aid))->fetch();
...
...
@@ -233,7 +269,7 @@ function statistics_access_log($aid) {
}
/**
* Form builder; Configure access logging.
* Form constructor for the statistics administration form.