function _recently_read_sort_fcn in Recently Read 6
Same name and namespace in other branches
- 7 recently_read.module \_recently_read_sort_fcn()
- 7.2 recently_read.module \_recently_read_sort_fcn()
1 string reference to '_recently_read_sort_fcn'
File
- ./
recently_read.module, line 379 - Recently read module file. Displays a history of recently read nodes by currently logged in user.
Code
function _recently_read_sort_fcn($a, $b) {
$delta = $b['timestamp'] - $a['timestamp'];
if ($delta > 0) {
return 1;
}
if ($delta < 0) {
return -1;
}
return 0;
}