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

Diff of /contributions/modules/og_block_visibility/og_block_visibility.module

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

revision 1.12, Fri Jun 9 13:25:24 2006 UTC revision 1.12.2.1, Mon Sep 1 13:41:18 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: og_block_visibility.module,v 1.11 2006/05/21 01:07:26 webchick Exp $  // $Id: og_block_visibility.module,v 1.12 2006/06/09 13:25:24 webchick Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 146  function og_block_visibility_submit($for Line 146  function og_block_visibility_submit($for
146   */   */
147  function og_block_visibility_get_visible_groups() {  function og_block_visibility_get_visible_groups() {
148    // Find list of groups    // Find list of groups
149    $types = variable_get('og_node_types', array('og'));    if (function_exists('og_get_types')) {
150        $types = og_get_types('group');
151      }
152      else {
153        $types = variable_get('og_node_types', array('og'));
154      }
155    if (empty($types)) {    if (empty($types)) {
156      return FALSE;      return FALSE;
157    }    }
# Line 234  function og_block_visibility_set_visibil Line 239  function og_block_visibility_set_visibil
239    
240    // Create PHP visibility string    // Create PHP visibility string
241    $php = "    $php = "
242  if (module_exist('og_block_visibility')) {  if (module_exists('og_block_visibility')) {
243    return og_block_visibility_check('$module', '$delta');    return og_block_visibility_check('$module', '$delta');
244  }  }
245  ";  ";

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.12.2.1

  ViewVC Help
Powered by ViewVC 1.1.2