function makemeeting_page_view in Make Meeting Scheduler 6
Same name and namespace in other branches
- 7 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 1101 - Make Meeting module
Code
function makemeeting_page_view($node, $cid = NULL) {
$node = node_load($node);
if ($node == FALSE) {
drupal_not_found();
}
else {
if ($node->type == 'makemeeting') {
global $user;
if ($user->uid == $node->uid || $user->uid == 1) {
return node_page_view($node, $cid);
}
else {
// Avoid display of node/NID pages to prevent data leakage
drupal_access_denied();
module_invoke_all('exit');
exit;
}
}
else {
return node_page_view($node, $cid);
}
}
}