Révision 8c72e82a
Ajouté par Assos Assos il y a environ 7 ans
drupal7/sites/all/modules/i18n/i18n_menu/i18n_menu.module | ||
---|---|---|
198 | 198 |
// We just make sure every link has a valid language property. |
199 | 199 |
if (!i18n_object_langcode($item)) { |
200 | 200 |
$item['language'] = LANGUAGE_NONE; |
201 |
$item['i18n_tsid'] = 0; |
|
202 | 201 |
} |
203 | 202 |
} |
204 | 203 |
|
... | ... | |
398 | 397 |
if (_i18n_menu_link_process($item['link'])) { |
399 | 398 |
if (!_i18n_menu_link_is_visible($item['link'], $langcode)) { |
400 | 399 |
// Remove links for other languages than current. |
401 |
// Links with language wont be localized. |
|
400 |
// Links with language won't be localized.
|
|
402 | 401 |
unset($tree[$index]); |
403 | 402 |
// @todo Research whether the above has any advantage over: |
404 | 403 |
// $item['hidden'] = TRUE; |
... | ... | |
600 | 599 |
} |
601 | 600 |
|
602 | 601 |
/** |
603 |
* Get localizable properties for menu link checking agains the router item. |
|
602 |
* Get localizable properties for menu link checking against the router item.
|
|
604 | 603 |
*/ |
605 | 604 |
function _i18n_menu_link_localizable_properties($link) { |
606 | 605 |
$props = array(); |
Formats disponibles : Unified diff
Weekly update of contrib modules