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

Contents of /contributions/modules/cleanfeeds/cleanfeeds.install

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


Revision 1.3 - (show annotations) (download) (as text)
Sun Sep 28 01:06:31 2008 UTC (14 months ago) by kbahey
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
Changes since 1.2: +0 -0 lines
File MIME type: text/x-php
Port to Drupal 6.x
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 }

  ViewVC Help
Powered by ViewVC 1.1.2