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.
I'm using Entity Translation with :
English set as default language at admin/config/regional/language
In the User Alert content type the "Multilingual support " is disabled.
So this code is setting language to 'und' but in my case it is actually to be 'en'
function user_alert_display_alert() {
if (module_exists('translation')) {
global $language;
$language = $language->language;
} else {
$language = LANGUAGE_NONE; //in my case I've temporarily set to en
}
Ideally it should query all the User Alerts without language in the db_query.
Comments
Comment #2
gromani14 CreditAttribution: gromani14 commentedHi rag_gupta,
I have the same issue and i've fixed wreplacing the query with the following one.. this will allow content with language setted or not.