Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling variable globally #41

Open
lavanyamanne2 opened this issue Feb 26, 2020 · 1 comment
Open

Calling variable globally #41

lavanyamanne2 opened this issue Feb 26, 2020 · 1 comment

Comments

@lavanyamanne2
Copy link

lavanyamanne2 commented Feb 26, 2020

Hello Brendan Heywood
I was talking about auth_enrolkey/auth.php, calling a value " $enrolplugin->id " from user_signup( )

$enrolplugins = $DB->get_records('enrol', array('password' => $user->signup_token));
$availableenrolids = [];

foreach ($enrolplugins as $enrolplugin) {          
                $data = new stdClass();
                $data->enrolpassword = $enrolplugin->password;
                $availableenrolids[] = $enrolplugin->id;            
 }      

I want to pass $enrolplugin->id value to user_confirm( ). Is this is possible:

Many Thanks!

@brendanheywood
Copy link
Contributor

hi @lavanyamanne2 sorry I've forgotten all the context to this, can you flesh out what you are after in full please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants