Sort by moste recent download by default

clarkburbidge - May 18, 2009 - 16:51
Project:Web File Manager Statistics
Version:6.x-1.1
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

It would seem to me that by default users would want to see the most recently downloaded files. Sortable columns are nice to let folks customize, but most recent seems to be where it should start. My $0.02.

Thanks for the great module!!

#1

Philo72 - September 22, 2009 - 15:48

You can change this yourself (if you modify the code)

line 81 of webfm_statistics.module to

From this--->

$header = array(
array('data' => t('File Type'), 'field' => 'fmime', 'sort' => 'desc'),
array('data' => t('Time'), 'field' => 'dl_time', 'sort' => 'asc'),
array('data' => t('User'), 'field' => 'name', 'sort' => 'desc'),
array('data' => t('Mail'), 'field' => 'mail', 'sort' => 'desc'),
array('data' => t('File'), 'field' => 'fpath', 'sort' => 'desc'),
array('data' => t('Node'), 'field' => 'nid', 'sort' => 'desc'),
);

change to This--->

$header = array(
array('data' => t('File Type'), 'field' => 'fmime'),
array('data' => t('Time'), 'field' => 'dl_time', 'sort' => 'desc'),
array('data' => t('User'), 'field' => 'name'),
array('data' => t('Mail'), 'field' => 'mail'),
array('data' => t('File'), 'field' => 'fpath'),
array('data' => t('Node'), 'field' => 'nid'),
);

 
 

Drupal is a registered trademark of Dries Buytaert.