@@ -70,58 +70,9 @@ class Candidate_List extends \DataFrameworkMenu
7070 */
7171 function getFieldOptions () : array
7272 {
73- $ this ->loris ->getModule ('candidate_parameters ' )->registerAutoloader ();
74-
75- // create user object
76- $ factory = \NDB_Factory::singleton ();
77- $ user = $ factory ->user ();
78- $ config = $ factory ->config ();
79-
80- // get the list of visit labels
81- $ visit_label_options = \Utility::getVisitList ();
82-
83- // get the list of sites available for the user
84- if ($ user ->hasPermission ('access_all_profiles ' )) {
85- $ list_of_sites = \Utility::getSiteList ();
86- } else {
87- $ list_of_sites = $ user ->getStudySites ();
88- }
89- $ site_options = [];
90- foreach (array_values ($ list_of_sites ) as $ name ) {
91- $ site_options [$ name ] = $ name ;
92- }
93-
94- // get the list of projects
95- $ list_of_projects = \Utility::getProjectList ();
96- $ project_options = [];
97- foreach (array_values ($ list_of_projects ) as $ name ) {
98- $ project_options [$ name ] = $ name ;
99- }
100-
101- // get the list of cohorts
102- $ list_of_cohorts = \Utility::getCohortList ();
103- $ cohort_options = [];
104- foreach (array_values ($ list_of_cohorts ) as $ name ) {
105- $ cohort_options [$ name ] = $ name ;
106- }
107-
108- // get the list participant status options
109- $ list_of_participant_status
110- = \Candidate::getParticipantStatusOptions ();
111- $ participant_status_options = [];
112- foreach (array_values ($ list_of_participant_status ) as $ name ) {
113- $ participant_status_options [$ name ] = $ name ;
114- }
115-
116- return [
117- 'visitlabel ' => $ visit_label_options ,
118- 'site ' => $ site_options ,
119- 'project ' => $ project_options ,
120- 'cohort ' => $ cohort_options ,
121- 'participantstatus ' => $ participant_status_options ,
122- 'useedc ' => $ config ->getSetting ("useEDC " ),
123- 'Sex ' => \Utility::getSexList (),
124- ];
73+ // To modify the field options,
74+ // you must edit getFieldOptions in options.class.inc
75+ return [];
12576 }
12677
12778 /**
0 commit comments