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

Diff of /contributions/modules/tagadelic/tagadelic.module

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

revision 1.40.2.6, Wed May 13 16:56:12 2009 UTC revision 1.40.2.7, Mon Sep 14 20:19:47 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: tagadelic.module,v 1.40.2.5 2009/05/13 16:47:00 ber Exp $  // $Id: tagadelic.module,v 1.40.2.6 2009/05/13 16:56:12 ber Exp $
3    
4  /**  /**
5   * Implementation of hook_help   * Implementation of hook_help
# Line 298  function _tagadelic_sort_by_title($a, $b Line 298  function _tagadelic_sort_by_title($a, $b
298   * callback for usort, sort by weight   * callback for usort, sort by weight
299   */   */
300  function _tagadelic_sort_by_weight($a, $b) {  function _tagadelic_sort_by_weight($a, $b) {
301      if ($a->weight == $b->weight) {
302        // Ensure correct order when same weight
303        return $a->count > $b->count;
304      }
305    return $a->weight > $b->weight;    return $a->weight > $b->weight;
306  }  }
307    

Legend:
Removed from v.1.40.2.6  
changed lines
  Added in v.1.40.2.7

  ViewVC Help
Powered by ViewVC 1.1.2