function filedepot_getSubmissionCnt in filedepot 6
Same name and namespace in other branches
- 7 lib-common.php \filedepot_getSubmissionCnt()
1 call to filedepot_getSubmissionCnt()
File
- ./
lib-common.php, line 266 - lib-common.php Common library of functions for the applications
Code
function filedepot_getSubmissionCnt() {
$filedepot = filedepot_filedepot();
// Determine if this user has any submitted files that they can approve
$query = db_query("SELECT cid from {filedepot_filesubmissions}");
$submissions = 0;
while ($A = db_fetch_array($query)) {
if ($filedepot
->checkPermission($A['cid'], 'approval')) {
$submissions++;
}
}
return $submissions;
}