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

Diff of /contributions/modules/spaces/spaces.module

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

revision 1.25.4.33.2.30, Thu Sep 10 16:06:57 2009 UTC revision 1.25.4.33.2.31, Thu Sep 10 16:28:29 2009 UTC
# Line 1  Line 1 
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    
# Line 750  function spaces_preset_enforce(&$space, Line 750  function spaces_preset_enforce(&$space,
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        }        }

Legend:
Removed from v.1.25.4.33.2.30  
changed lines
  Added in v.1.25.4.33.2.31

  ViewVC Help
Powered by ViewVC 1.1.2