Fix for autotaxweightmod

  1. <?php
  2. // $Id$
  3.  
  4. function autotaxweight_taxonomy($op, $type, $array = NULL){
  5.   if (($op == 'insert' || $op == 'update') && $type == 'term') {
  6.         if ($array[parent][0] == 0) {
  7.       $array[weight] = 1;
  8.         }
  9.   }
  10. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.