/[drupal]/contributions/modules/cleanfeeds/cleanfeeds.install
ViewVC logotype

Diff of /contributions/modules/cleanfeeds/cleanfeeds.install

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

revision 1.1, Thu Mar 13 16:43:11 2008 UTC revision 1.2, Thu Mar 13 16:46:54 2008 UTC
# Line 0  Line 1 
1    <?php
2    // $Id: cleanfeeds.install,v 1.1.2.1 2008/03/13 16:43:11 kbahey Exp $
3    
4    function cleanfeeds_set_module_weight() {
5      // We want this module to be called last, so that it really cleans everything,
6      // regardless of what other modules have inserted in the feeds
7      db_query("UPDATE {system} SET weight = 1000 WHERE name = 'cleanfeeds' AND type = 'module';");
8    }
9    
10    function cleanfeeds_install() {
11      cleanfeeds_set_module_weight();
12    }
13    
14    function cleanfeeds_update_1() {
15      cleanfeeds_set_module_weight();
16      return array();
17    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2