Where Moodle calls DB enrolemt plugin?

Where Moodle calls DB enrolemt plugin?

by Jordi Martínez -
Number of replies: 2

Good afternoon,

I'm looking for place where Moodle calls DB enrolment plugin. I think may be someplace on login proces but I've been searching a lot and I can't find it.

Someone knows it?

(I set up db enrolment plugin and it doesn't work, I'm trying to know why by debugging, but script dont call enrol_database_plugin->sync_user_enrolments()).

Days of crazzy search, thanks for help wink

Jordi

Average of ratings: -
In reply to Jordi Martínez

Re: Where Moodle calls DB enrolemt plugin?

by Jordi Martínez -

Hi again,

I found it! If anyone will need in the future:

function sync_user_enrolments() from /enrol/database/lib.php file

Is called by:

function enrol_check_plugins() from /lib/enrollib.php file

Is called by:

function session_set_user() from /lib/sessionlib.php file

Is called by:

function complete_user_login($user) from /lib/moodlelib.php

Is called by:

/login/index.php

Jordi M

Average of ratings: Useful (1)