Moodle has some hooks available, and various plugin APIs. It's probably best if you describe what you're trying to achieve, and someone can point you at the recommended method for implementing it.
General developer forum
Use of hooks in Moodle or Alternative solutions
This discussion has been locked so you can no longer reply to it.