| 1 |
<?php |
<?php |
| 2 |
// $Id: spaces.module,v 1.25.4.33.2.29 2009/09/06 17:09:18 yhahn Exp $ |
// $Id: spaces.module,v 1.25.4.33.2.30 2009/09/10 16:06:57 yhahn Exp $ |
| 3 |
|
|
| 4 |
define('SPACES_FEATURE_DISABLED', 0); |
define('SPACES_FEATURE_DISABLED', 0); |
| 5 |
|
|
| 750 |
// Fill in excessively high weight entries for any features that don't exist in |
// Fill in excessively high weight entries for any features that don't exist in |
| 751 |
// the weights array. |
// the weights array. |
| 752 |
$i = 0; |
$i = 0; |
| 753 |
foreach (array_diff_key($space->features, $preset['weights']) as $feature) { |
foreach (array_diff_key($space->features, $preset['weights']) as $feature => $value) { |
| 754 |
$preset['weights'][$feature] = 1000 + $i; |
$preset['weights'][$feature] = 1000 + $i; |
| 755 |
$i++; |
$i++; |
| 756 |
} |
} |