I want to show a message when a module is being enabled. I used hook_modules_enabled
and it shows me the message while enabling a new module.
Now I need the currently enabled module machine name in the hooks argument.
But hook_modules_enabled($modules)
returns an array of modules in the argument.
Eg:
When views is enabled, I need to set a message as:
"Views Module is enabled"
Here I need "views" (i.e. the module name) as argument in hook_modules_enabled
in order to print it in message but it returns me an array.
How can I achieve this. Is there any other hook for this?