/[drupal]/contributions/modules/wghtml/wghtml_node_module.php
ViewVC logotype

Diff of /contributions/modules/wghtml/wghtml_node_module.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.4.1, Sun Feb 25 02:46:54 2007 UTC revision 1.1.4.2, Fri Oct 19 12:47:17 2007 UTC
# Line 1  Line 1 
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
# Line 99  function _wghtml_show($action=false, $fi Line 99  function _wghtml_show($action=false, $fi
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);

Legend:
Removed from v.1.1.4.1  
changed lines
  Added in v.1.1.4.2

  ViewVC Help
Powered by ViewVC 1.1.2