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.
Hi to all,
i think it will be very interesting to use a custom theme function to render entity_translation_overview function result.
In this manner, i can override the theme function in my custom theme to highlight translation not yet saved.
Something very simple like this:
function theme_entity_translation_overview($variables){
return theme('table', $variables);
}
Comment | File | Size | Author |
---|---|---|---|
#12 | interdiff.txt | 1.31 KB | plach |
#10 | use-custom-theme.1937242.patch | 4.09 KB | eliosh |
#6 | use-custom-theme.1937242.patch | 4.09 KB | eliosh |
#3 | entity_translation.admin_.inc_.1937242.patch | 2.1 KB | eliosh |
#3 | entity_translation.module.1937242.patch | 1.13 KB | eliosh |
Comments
Comment #1
plachSounds reasonable, care to provide a patch?
Comment #2
elioshOk, i'll try to post a patch tonight.
Comment #3
elioshHere are the patches.
I'm sorry for not providing one file patch, but i'm using 'diff' command CLI :-)
Comment #5
plachThanks, there are a few coding standard issues I noted below. Can you move the theme function bodies in entity_translation.admin.inc please? Also I'd really need a single patch to commit :)
Separators in class names usually are dashes.
Also, for consistency with the rest of ET code, please use single quotes wherever possible.
Comment #6
elioshHere is the patch updatated.
Comment #7
elioshComment #8
plachDefinitely better :)
However...
there is still a lingering underscore here ;)
and double quotes here.
Comment #10
elioshHere we are with updated patch :-)
Comment #12
plachCommitted and pushed with the attached small changes. Thanks!