function _hacked_project_report_sort_by_status in Hacked! 8.2
Same name and namespace in other branches
- 6.2 hacked.module \_hacked_project_report_sort_by_status()
- 7.2 hacked.module \_hacked_project_report_sort_by_status()
Sort callback for sorting the projects in the report.
3 string references to '_hacked_project_report_sort_by_status'
- HackedCommands::buildReportBatchFinished in src/
Commands/ HackedCommands.php - Completion callback for the report batch.
- hacked_build_report_batch_finished in ./
hacked.report.inc - Completion callback for the report batch.
- hacked_build_report_batch_finished_drush in ./
hacked.drush.inc - Completion callback for the report batch.
File
- ./
hacked.module, line 49 - The Hacked! module, shows which project have been changed since download.
Code
function _hacked_project_report_sort_by_status($a, $b) {
if ($a['status'] == $b['status']) {
return strcmp($a['name'], $b['name']);
}
else {
return $a['status'] - $b['status'];
}
}