Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Move confirmation message from hook_module_enabled to hook_install
Move confirmation message from hook_module_enabled to hook_install
Comments
Comment #1
jkuma CreditAttribution: jkuma commentedComment #2
jkuma CreditAttribution: jkuma commentedHere is an attempt to solve this issue.
Comment #3
theo_ CreditAttribution: theo_ commentedWhen using t() function inside a hook_install() we have to ensure we use the proper localization function by calling get_t().
Please keep the one line syntax for it.
Comment #4
jkuma CreditAttribution: jkuma commentedHere is a second attempt with your advices.
Comment #5
theo_ CreditAttribution: theo_ commentedCommited into 7.x-1.x as 5d14b39e1
I reworked it because, get_t() was used the wrong way. You should have written :