Parent Student relation

don
Hi, Any idea on how can I do parent-student relationship? What can parent role do? - Create account for hes/her children(student). - Acess his/her children's posts, grades and other details What student role do? - Do quizzes, exam, assessment *** Features similar to moodle Regards, Don
axel

Hi Don,

Hi Don, Thanks for your feedback. Your idea is nice. It could be probably easily implemented using this kind of module https://drupal.org/project/subuser Don't hesitate to post on this forum for any question regarding the implementation. Best regards, Axel
don

Thanks

Hi axel, Thanks for your respond. I'll try play around with the subuser module.
msharma

Hi Don,

The drupal 7 subuser module is doing the something as required, but when we tried to add multiple members then the list show all the users from website to add or remove. I want in the add multiple member page only users added by manager as subuser will be list not from other manager sub users. How can i achieve this thing.
Profile picture for user James Aparicio
James Aparicio

Hi msharma,

Hi msharma,

This really depends on what interface you are refering to and how you can hook into the possible results you are getting.

Best regards

msharma

Hi James

Hi James, Actually i have create a class in which there are several courses. When i click on my courses i can see list of classes, on clicking particular class, a class with their courses open. Here i click on users where i have found add member and add multiple members for the class who can join. On Add multiple members there is list of available users option and selected users for the class to whom role can be define like student , coach etc. Now i want that in list of available option can contains user list from subuser drupal module for that user only. Thanks.
Profile picture for user James Aparicio
James Aparicio

Hi msharma,

Hi msharma,

You shoudl be able to do it with a form_alter

https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_form_alter/7

Changing the fucntion to get the users.

Best regards

msharma

Hi James,

Hi James, I know i can edit the form, but the question how to list the users from user's subusers as i have vardump and there is nothing mention related to subusers. If you can elaborate or give me some code sample it will help me a lot. Thanks
Profile picture for user James Aparicio
James Aparicio

Hi msharma,

Hi msharma,

 

For the add members page, the form element should have a key called #autocomplemte_path that references a path. You can alter it to a path created by you that returns the user that you want.

Ex: https://www.drupal.org/node/854216

 

For the add multiples members, we already have some costumizations on it. You can look inside

opigno_lms/modules/opigno/opigno/modules/simple_ui/includes/opigno_simple_ui.og.inc

 

Best regards