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

Diff of /contributions/modules/createcontentblock/createcontentblock.module

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

revision 1.1.2.9, Fri May 16 21:36:13 2008 UTC revision 1.1.2.10, Fri Jul 25 21:18:30 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: createcontentblock.module,v 1.1.2.6 2007/12/19 00:14:56 douggreen Exp $  // $Id: createcontentblock.module,v 1.1.2.9 2008/05/16 21:36:13 douggreen Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 60  function createcontentblock_form_init() Line 60  function createcontentblock_form_init()
60    if ($og = module_exists('og')) {    if ($og = module_exists('og')) {
61      $group_node = og_get_group_context();      $group_node = og_get_group_context();
62      global $user;      global $user;
63      if (isset($user->og_groups[$group_node->nid])) {      if ($user->uid == 1 || user_access('administer organic groups') || isset($user->og_groups[$group_node->nid])) {
64        // add only OG groups we have access to        // add only OG groups we have access to
65        $init['group_nid'] = $group_node->nid;        $init['group_nid'] = $group_node->nid;
66      }      }

Legend:
Removed from v.1.1.2.9  
changed lines
  Added in v.1.1.2.10

  ViewVC Help
Powered by ViewVC 1.1.2