General developer forum

How is module id determined?

 
Picture of Peter de Jong
How is module id determined?
 

I can't find a field for Id when I create a module. But I know it exists from the Moodle API. So how is it determined? Is it automatically calculated from top to bottom in order?

If so, how does it factor in if a module is "Hidden"?

 
Average of ratings: -