You are here

function defaultcontent_page_view in Default Content 7

Same name and namespace in other branches
  1. 7.2 defaultcontent.module \defaultcontent_page_view()

Load up node

1 string reference to 'defaultcontent_page_view'
defaultcontent_menu in ./defaultcontent.module
Implements hook_menu().

File

./defaultcontent.module, line 99
Module file for the Default content module which allow export and import of default content in a Drupal site.

Code

function defaultcontent_page_view($name) {
  $node = defaultcontent_get_node($name);
  if ($node) {
    $_GET['q'] = 'node/' . $node->nid;
    return menu_execute_active_handler('node/' . $node->nid, FALSE);
  }
  drupal_not_found();
}