$result=db_query('SELECT c.cid, c.title, COUNT(ci.iid) as items FROM {aggregator_category} c LEFT JOIN {aggregator_category_item} ci ON c.cid = ci.cid GROUP BY c.cid, c.title ORDER BY title');
drupal_set_title(t('Top pages in the past %interval',array('%interval'=>format_interval(variable_get('statistics_flush_accesslog_timer',259200)))),PASS_THROUGH);
@@ -136,15 +130,12 @@ function statistics_top_visitors() {
$rows[]=array($account->hits,($account->uid?theme('username',array('account'=>$account)):$account->hostname),format_interval(round($account->total/1000)),(user_access('block IP addresses')&&!$account->uid)?$ban_link:'');
drupal_set_title(t('Top visitors in the past %interval',array('%interval'=>format_interval(variable_get('statistics_flush_accesslog_timer',259200)))),PASS_THROUGH);
$output=theme('table',array('header'=>$header,'rows'=>$rows,'empty'=>t('No modules are available to uninstall.')));
$output.=drupal_render_children($form);
return$output;
...
...
@@ -2648,14 +2643,11 @@ function system_date_time_formats() {
}
}
if(empty($rows)){
$rows[]=array(array('data'=>t('No custom date formats available. <a href="@link">Add date format</a>.',array('@link'=>url('admin/config/regional/date-time/formats/add'))),'colspan'=>'5','class'=>array('message')));
}
$build['date_formats_table']=array(
'#theme'=>'table',
'#header'=>$header,
'#rows'=>$rows,
'#empty'=>('No custom date formats available.'),
);
return$build;
...
...
@@ -3012,4 +3004,3 @@ function system_actions_remove_orphans() {
// Now, get the data and put into the placeholder array
$result=db_query('SELECT n.nid, n.title, n.type, n.changed, n.uid, u.name, l.comment_count FROM {node} n INNER JOIN {node_comment_statistics} l ON n.nid = l.nid INNER JOIN {users} u ON n.uid = u.uid WHERE n.nid IN (:nids)',array(':nids'=>array_keys($nodes)),array('target'=>'slave'));