| 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 |
| 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') { |