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'd like to know if it is possible to create a message with a defined language (and not with the current site language)?
I've made a custom function (a callback for a rule), but it doesn't seem to work...
function create_message_with_language($my_user, $my_language, $my_message_type){
$values['type'] = $my_message_type;
$values['user'] = $my_user;
$values += array(
'language' => $my_language,
);
$my_message = entity_create('message', $values);
return array('message_with_language' => $my_message);
}
Comments
Comment #1
salvatore_severo CreditAttribution: salvatore_severo commentedWe have to see this too, that is correlated...
https://drupal.org/node/2177929
Comment #2
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commented