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.
Here's an attempt to integrate publish/unpublish actions on a translation. This requires a relation with entity translation language in Views
Comment | File | Size | Author |
---|---|---|---|
entity_translation-vbo-integration.patch | 2.08 KB | SebCorbin | |
Comments
Comment #1
plachComment #2
stefanos.petrakis@gmail.comHey there,
Thanks for the idea and the patch, makes sense, clearly.
I tested this against the latest 7.x-1.x-dev on a D7.50, worked fine.
One clarification question; when you say:
I understand this as
Is my understanding correct? If yes, then the next point is important.
Point to improve
We need some kind of fallback, for the case where the View at hand doesn't have a relation with entity translation language.
For example, one could use the
$language_content
global to grab the current content language. Or, anything else to avoid errors.Regards!
Comment #3
plachAlso, can we remove this formatting for consistency with the rest of the codebase?