| 1 |
<?php |
<?php |
| 2 |
// $Id: index.form.inc,v 1.1.2.13 2009/10/19 01:19:46 xano Exp $ |
// $Id: index.form.inc,v 1.1.2.14 2009/11/08 20:11:49 xano Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 231 |
if ($values["layer_type_$i"] !== '0') { |
if ($values["layer_type_$i"] !== '0') { |
| 232 |
$index->layers[$i] = array( |
$index->layers[$i] = array( |
| 233 |
'type' => $values["layer_type_$i"], |
'type' => $values["layer_type_$i"], |
| 234 |
'count' => $values["layer_count_$i"], |
'count' => isset($values["layer_count_$i"]) ? $values["layer_count_$i"] : 0, |
| 235 |
); |
); |
| 236 |
} |
} |
| 237 |
} |
} |
| 273 |
'#default_value' => $parent_type, |
'#default_value' => $parent_type, |
| 274 |
'#required' => $i < count($index->layers), |
'#required' => $i < count($index->layers), |
| 275 |
), |
), |
| 276 |
"layer_count_$i" => array( |
"layer_count_$i" => $i == count($index->layers) ? array( |
| 277 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 278 |
'#default_value' => $count, |
'#default_value' => $count, |
| 279 |
), |
) : NULL, |
| 280 |
); |
); |
| 281 |
} |
} |
| 282 |
$layers['layer_count'] = array( |
$layers['layer_count'] = array( |