I have seen something like this in my bash ENV:

 module=() { eval `/usr/bin/modulecmd bash $*` }

How does this construct work? What is it called?

I'm not asking about modulecmd, I am asking about the entire construct.