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

Diff of /contributions/modules/publishcontent/publishcontent.module

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

revision 1.3.4.8, Fri Mar 13 01:27:41 2009 UTC revision 1.3.4.9, Wed Mar 18 22:55:50 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: publishcontent.module,v 1.3.4.7 2009/02/24 01:09:48 malaussene Exp $  // $Id: publishcontent.module,v 1.3.4.8 2009/03/13 01:27:41 malaussene Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 90  function publishcontent_perm() { Line 90  function publishcontent_perm() {
90    );    );
91    
92    foreach (node_get_types() as $type) {    foreach (node_get_types() as $type) {
93      if ($type->module == 'node') {      if (isset($type->type)) {
94        $perms[] = '  publish '. check_plain($type->type) .' content';        $perms[] = '  publish '. check_plain($type->type) .' content';
95        $perms[] = '  publish own '. check_plain($type->type) .' content';        $perms[] = '  publish own '. check_plain($type->type) .' content';
96        $perms[] = 'unpublish '. check_plain($type->type) .' content';        $perms[] = 'unpublish '. check_plain($type->type) .' content';

Legend:
Removed from v.1.3.4.8  
changed lines
  Added in v.1.3.4.9

  ViewVC Help
Powered by ViewVC 1.1.2