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

Contents of /contributions/modules/node_form_rearrange/node_form_rearrange.install

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


Revision 1.1 - (show annotations) (download) (as text)
Mon Nov 17 21:08:10 2008 UTC (12 months, 1 week ago) by chiddicks
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
File MIME type: text/x-php
Initial commit of node_form_rearrange module.
1 <?php
2 // $Id$
3
4 /**
5 * @file
6 * Implements one hook. This sets the weight of this module to be greater than the taxonomy module.
7 */
8
9 /**
10 * Implementation of hook_install().
11 */
12 function node_form_rearrange_install() {
13 $weight = (int)db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy'"));
14 db_query("UPDATE {system} SET weight = %d WHERE name = 'node_form_rearrange'", $weight + 1);
15 }

  ViewVC Help
Powered by ViewVC 1.1.2