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

Diff of /contributions/modules/og_abt/og_abt.module

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

revision 1.1.2.16.2.1, Mon Jun 16 16:46:00 2008 UTC revision 1.1.2.16.2.2, Tue Jun 17 03:05:41 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: og_abt.module,v 1.1.2.16 2008/06/15 00:11:01 jrbeeman Exp $  // $Id: og_abt.module,v 1.1.2.16.2.1 2008/06/16 16:46:00 jrbeeman Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 221  function og_abt_process_options($options Line 221  function og_abt_process_options($options
221        $function($tmp_options, $og_type);        $function($tmp_options, $og_type);
222      }      }
223      $form['og_group_type_'. $og_type . $suffix]['#options'] = $tmp_options;      $form['og_group_type_'. $og_type . $suffix]['#options'] = $tmp_options;
224    }  
225        $options = $form['og_group_type_'. $og_type . $suffix]['#options'];
226    if (!count($form['og_group_type_'. $og_type . $suffix]['#options'])) {      if (!count($options) || (count($options) == 1 && $options[0] == '')) {
227      $form['og_group_type_'. $og_type . $suffix]['#type'] = 'value';        unset($form['og_group_type_'. $og_type . $suffix]);
228      $form['og_group_type_'. $og_type . $suffix]['#value'] = NULL;      }
229    }    }
230    
231    if (!count($form) && $suffix == '_my') {    if (!count($form) && $suffix == '_my') {

Legend:
Removed from v.1.1.2.16.2.1  
changed lines
  Added in v.1.1.2.16.2.2

  ViewVC Help
Powered by ViewVC 1.1.2