/[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.5.2.3, Thu Mar 19 05:49:49 2009 UTC revision 1.5.2.4, Thu Mar 19 05:54:26 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: publishcontent.module,v 1.5.2.2 2009/03/13 02:25:56 malaussene Exp $  // $Id: publishcontent.module,v 1.5.2.3 2009/03/19 05:49:49 malaussene Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 87  function publishcontent_perm() { Line 87  function publishcontent_perm() {
87    );    );
88    
89    foreach (node_get_types() as $type) {    foreach (node_get_types() as $type) {
90      if ($type->module == 'node') {      if (isset($type->type)) {
91        $perms[] = '  publish '. check_plain($type->type) .' content';        $perms[] = '  publish '. check_plain($type->type) .' content';
92        $perms[] = '  publish own '. check_plain($type->type) .' content';        $perms[] = '  publish own '. check_plain($type->type) .' content';
93        $perms[] = 'unpublish '. check_plain($type->type) .' content';        $perms[] = 'unpublish '. check_plain($type->type) .' content';

Legend:
Removed from v.1.5.2.3  
changed lines
  Added in v.1.5.2.4

  ViewVC Help
Powered by ViewVC 1.1.2