function outline_child_pages_link in Outline Designer 7
Same name and namespace in other branches
- 6.2 modules/outline_child_pages/outline_child_pages.module \outline_child_pages_link()
- 6 outline_child_pages/outline_child_pages.module \outline_child_pages_link()
Implements hook_link().
File
- outline_child_pages/
outline_child_pages.module, line 114
Code
function outline_child_pages_link($type, $node = NULL, $teaser = FALSE) {
$links = array();
if ($type == 'node' && isset($node->book)) {
if (!$teaser) {
if (outline_child_pages_access($node, 'link')) {
$links['book_outline_child'] = array(
'title' => t('Outline child pages'),
'href' => 'node/' . $node->nid . '/outline_children_link',
);
}
}
}
return $links;
}