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

Diff of /contributions/modules/update_status_aggregator/update_status_aggregator.module

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

revision 1.13.2.2, Fri Mar 28 20:42:57 2008 UTC revision 1.13.2.3, Fri May 2 19:21:41 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: update_status_aggregator.module,v 1.13.2.1 2008/03/28 19:57:08 yrocq Exp $  // $Id: update_status_aggregator.module,v 1.13.2.2 2008/03/28 20:42:57 yrocq Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 23  function update_status_aggregator_help($ Line 23  function update_status_aggregator_help($
23    */    */
24  function update_status_aggregator_perm() {  function update_status_aggregator_perm() {
25    return array(    return array(
26        'view update status aggregator module',
27      'create update status aggregator module',      'create update status aggregator module',
28      'edit own update status aggregator module',      'edit own update status aggregator module',
29        'view update status aggregator site',
30      'create update status aggregator site',      'create update status aggregator site',
31      'edit own update status aggregator site',      'edit own update status aggregator site',
32    );    );
# Line 37  function update_status_aggregator_access Line 39  function update_status_aggregator_access
39    global $user;    global $user;
40    
41    if ($node->type == "update_status_aggregator_module") {    if ($node->type == "update_status_aggregator_module") {
42        if($op == 'view') {
43          return user_access('view update status aggregator module');
44        }
45    
46      if ($op == 'create') {      if ($op == 'create') {
47        return user_access('create update status aggregator module');        return user_access('create update status aggregator module');
48      }      }
# Line 48  function update_status_aggregator_access Line 54  function update_status_aggregator_access
54      }      }
55    }    }
56    elseif ($node->type == "update_status_aggregator_site") {    elseif ($node->type == "update_status_aggregator_site") {
57        if ($op == 'view') {
58          return user_access('view update status aggregator site');
59        }
60    
61      if ($op == 'create') {      if ($op == 'create') {
62        return user_access('create update status aggregator site');        return user_access('create update status aggregator site');
63      }      }

Legend:
Removed from v.1.13.2.2  
changed lines
  Added in v.1.13.2.3

  ViewVC Help
Powered by ViewVC 1.1.2