/[drupal]/contributions/modules/jobsearch/access/resume_access.module
ViewVC logotype

Diff of /contributions/modules/jobsearch/access/resume_access.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Fri Jan 2 02:49:22 2009 UTC revision 1.2.2.1, Tue Oct 6 23:02:04 2009 UTC
# Line 1  Line 1 
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    
# Line 21  function resume_access_node_grants($acco Line 15  function resume_access_node_grants($acco
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)) {
# Line 47  function resume_access_node_access_recor Line 38  function resume_access_node_access_recor
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,

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.2.1

  ViewVC Help
Powered by ViewVC 1.1.2