function i18n_book_navigation_link_load in Book translation 6.2
Same name and namespace in other branches
- 7.2 i18n_book_navigation.module \i18n_book_navigation_link_load()
Loads a link. Port from book_link_load(). Will translate the link after loading it.
Parameters
int $mlid: The menu link id
Return value
array|false The loaded link or false if no link was found
See also
1 call to i18n_book_navigation_link_load()
- template_preprocess_i18n_book_navigation in ./
i18n_book_navigation.module - Preprocesses the i18n_book_navigation. Very similar to the book_navigation, the i18n_book_navigation uses the same template file and template variables. These variables will be translated and the urls adapted.
File
- ./
i18n_book_navigation.module, line 533 - Defines the i18n book navigation module. Contains all necessary data and hooks
Code
function i18n_book_navigation_link_load($mlid) {
$tree = array(
array(
'link' => book_link_load($mlid),
'below' => FALSE,
),
);
$tree = i18n_book_navigation_translate_tree($tree);
return isset($tree[0]['link']) ? $tree[0]['link'] : FALSE;
}