function makemeeting_node_access in Make Meeting Scheduler 7
Implementation of hook_node_access()
File
- ./
makemeeting.module, line 372 - Make Meeting module
Code
function makemeeting_node_access($node, $op, $account) {
if (is_object($node) && $node->type == 'makemeeting') {
switch ($op) {
// disabling the edit page: we don't give access to any user
// reason: we're using custom urls to update the nodes, and only
// the owner of the poll has the custom admin url
case 'update':
return FALSE;
case 'delete':
return user_access('delete poll', $account) && $account->uid == $node->uid;
}
}
return FALSE;
}