Is there an equivalent superglobal in Drupal to Joomla's $module->id which returned the current module's id from the stack of installed modules from the database?

Comments

jaypan’s picture

Drupal is all modules, so there is no 'current' module - at any given time everything is running through a number of different modules.

Contact me to contract me for D7 -> D10/11 migrations.

roychri’s picture

Drupal was designed very differently from Joomla. Your question does not really apply to the drupal world.

Give more details about what you want to achieve and why you want to know this information. We'll give you the equivalent based on your goal.

Cheers.