You are here

function makemeeting_page_view in Make Meeting Scheduler 7

Same name and namespace in other branches
  1. 6 makemeeting.module \makemeeting_page_view()

Wrapper around node_page_view().

1 string reference to 'makemeeting_page_view'
makemeeting_menu_alter in ./makemeeting.module
Implements hook_menu_alter()

File

./makemeeting.module, line 1220
Make Meeting module

Code

function makemeeting_page_view($node) {
  if ($node->type == 'makemeeting') {
    global $user;
    if ($user->uid == $node->uid || $user->uid == 1) {
      return node_page_view($node);
    }
    else {

      // Avoid display of node/NID pages to prevent data leakage
      return drupal_access_denied();
    }
  }
  else {
    return node_page_view($node);
  }
}