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.
Problem/Motivation
content_translation_enable() will never run. There is no hook_enable() anymore. See https://www.drupal.org/node/2193013
Proposed resolution
Move to hook_install(). Add tests.
Remaining tasks
Add tests.
User interface changes
Helpful messages will be back.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#9 | 2632560-9.patch | 1.71 KB | vijaycs85 |
Comments
Comment #2
Gábor HojtsyComment #3
vijaycs85Guess just this one line would do.
Comment #5
dawehnerFor BC reasons we better keep the function, people might call that function in custom code. (Applying the strict BC policy we have in RL)
Comment #8
Gábor HojtsyAll right, we can keep the function but I have little faith that anybody may call it. Its true that we better be safe than sorry.
Comment #9
vijaycs85Thanks @dawehner and @Gábor Hojtsy for the feedback. Here is the updated version of patch.
Comment #11
Gábor HojtsySo looks like some tests do not enable the language module properly or do not generate the routes :(
Comment #12
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedIsn't this the same as this older issue #2342015: Content Translation module still implements hook_enable?
Comment #13
Gábor HojtsyRight, we can move over there. @vijaycs85: can you apply the non-removal of the enable hook there and post an update? Thanks a lot!