It would be useful to add a variable for the language. Something like this:
function echo_themed_page($title, $content, $theme, $language = '') {
$path = $language == '' ? '' : $language . '/';
$path .= 'echo';
$url = url($path, array('absolute' => TRUE));
...For sending e-mail header and footer with language that is not a current site language.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1377632-add-language-parameter.patch | 826 bytes | Stevel |
Comments
Comment #1
pillarsdotnet commentedGood idea, but does the language choice always affect the URL in exactly that manner?
Comment #2
Stevel commentedWhy not use the language option of the url function?
Note (for the documentation) that the url function requires a language object and not a string.
Comment #3
Stevel commentedAdded a proper patch.
Comment #3.0
Stevel commentedwritten errors corrected
Comment #4
Stevel commentedAny progress on this?