| 1 |
<?php |
<?php |
|
//$Id$ |
|
|
|
|
|
// Copyright Khalid Baheyeldin 2006-2009 http://2bits.com |
|
| 2 |
|
|
| 3 |
define('RESUME_PERM_VIEW', 'view resumes'); |
define('RESUME_PERM_VIEW', 'view resumes'); |
| 4 |
|
|
|
/** |
|
|
* Implementation of hook_node_grants(). |
|
|
*/ |
|
| 5 |
function resume_access_node_grants($account, $op) { |
function resume_access_node_grants($account, $op) { |
| 6 |
global $user; |
global $user; |
| 7 |
|
|
| 15 |
return $grants; |
return $grants; |
| 16 |
} |
} |
| 17 |
|
|
|
/** |
|
|
* Implementation of hook_node_access_records(). |
|
|
*/ |
|
| 18 |
function resume_access_node_access_records($node) { |
function resume_access_node_access_records($node) { |
| 19 |
$grants = array(); |
$grants = array(); |
| 20 |
if (variable_get(RESUME_NODE_TYPE . $node->type, 0)) { |
if (variable_get(RESUME_NODE_TYPE . $node->type, 0)) { |
| 38 |
return $grants; |
return $grants; |
| 39 |
} |
} |
| 40 |
|
|
|
/** |
|
|
* Implementation of hook_perm(). |
|
|
*/ |
|
| 41 |
function resume_access_perm() { |
function resume_access_perm() { |
| 42 |
return array( |
return array( |
| 43 |
RESUME_PERM_VIEW, |
RESUME_PERM_VIEW, |