You are here

function outline_child_pages_link in Outline Designer 6

Same name and namespace in other branches
  1. 6.2 modules/outline_child_pages/outline_child_pages.module \outline_child_pages_link()
  2. 7 outline_child_pages/outline_child_pages.module \outline_child_pages_link()

Implementation of hook_link().

File

outline_child_pages/outline_child_pages.module, line 109

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;
}