| 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 |
| 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 |
} |
} |