/[drupal]/contributions/modules/view_own/view_own.module
ViewVC logotype

Diff of /contributions/modules/view_own/view_own.module

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

revision 1.1.2.3, Wed May 27 14:55:36 2009 UTC revision 1.1.2.4, Wed May 27 14:58:38 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // vim: set filetype=php expandtab tabstop=2 shiftwidth=2 autoindent smartindent:  // vim: set filetype=php expandtab tabstop=2 shiftwidth=2 autoindent smartindent:
3  // $Id: view_own.module,v 1.1.2.2 2009/05/27 14:43:49 kenorb Exp $  // $Id: view_own.module,v 1.1.2.3 2009/05/27 14:55:36 kenorb Exp $
4    
5  /**  /**
6   * @file   * @file
# Line 30  function view_own_help($path, $arg) { Line 30  function view_own_help($path, $arg) {
30    
31  function view_own_perm() {  function view_own_perm() {
32    foreach (node_get_types() as $type) {    foreach (node_get_types() as $type) {
33      if ($type->module == 'node') {      $perms[] = 'view own '. $type->type .' content';
34        $perms[] = 'view own '. $type->type .' content';      $perms[] = 'view any '. $type->type .' content';
       $perms[] = 'view any '. $type->type .' content';  
     }  
35    }    }
36    return $perms;    return $perms;
37  }  }

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

  ViewVC Help
Powered by ViewVC 1.1.2