| 1 |
<?php // $Id: wghtml_node_module.php,v 1.1 2005/10/09 15:59:51 djnz Exp $ |
<?php // $Id: wghtml_node_module.php,v 1.1.4.1 2007/02/25 02:46:54 djnz Exp $ |
| 2 |
|
|
| 3 |
/** |
/** |
| 4 |
* Implementation of hook_help |
* Implementation of hook_help |
| 99 |
// get the requested page: $file is usually false so get_page uses the REQUEST_URI from the redirect as a default |
// get the requested page: $file is usually false so get_page uses the REQUEST_URI from the redirect as a default |
| 100 |
$page->get_page($file); |
$page->get_page($file); |
| 101 |
|
|
| 102 |
|
// deal with non-existent page |
| 103 |
|
if ( empty($page->pageId) ) { |
| 104 |
|
drupal_not_found(); |
| 105 |
|
return; |
| 106 |
|
} |
| 107 |
|
|
| 108 |
// now load the node: the node load hook will add the page to the node |
// now load the node: the node load hook will add the page to the node |
| 109 |
$node = module_invoke('node', 'load', $page->pageId); |
$node = module_invoke('node', 'load', $page->pageId); |
| 110 |
return node_page_view($node); |
return node_page_view($node); |