function student_files_perm
Search API
7.x student_files.module | student_files_perm() |
6.x student_files.module | student_files_perm() |
Implements hook_perm
File
- modules/
student_files/ student_files.module, line 740 - This is the student_files module, which will facilitate uploading (securely) files to be associated with student accounts.
Code
function student_files_perm() {
return array(
"administer_student_files" => array(
"title" => t("Administer student files settings"),
),
"upload_any_student_files" => array(
"title" => t("Upload any to student's files"),
"description" => t("This lets the user upload to any student's files, using the student file upload tool on the Main tab."),
),
"upload_student_files" => array(
"title" => t("Upload student files"),
"description" => t("This permission lets the user upload student files to any student they can normally view the history of.
Files appear on the student's History tab."),
),
"delete_own_student_files" => array(
"title" => t("Delete own student files that the user uploaded themselves"),
),
"delete_any_student_files" => array(
"title" => t("Delete ANY student files that were uploaded by anyone"),
),
"download_advising_student_files" => array(
"title" => t("Download files for any student the user can 'View'"),
"description" => t("If this user is also allowed to view the student's View tab, History, etc, then they are allowed to download
files for that student. For example, the student is one of the user's advisees."),
),
);
}