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

Contents of /contributions/modules/publishcontent/publishcontent.install

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


Revision 1.3 - (show annotations) (download) (as text)
Wed Jan 21 02:19:53 2009 UTC (10 months ago) by malaussene
Branch: MAIN
CVS Tags: DRUPAL-5--2-0, DRUPAL-5--2-1-BETA1, DRUPAL-5--2-1-BETA2, HEAD
Branch point for: DRUPAL-5--2
Changes since 1.2: +4 -4 lines
File MIME type: text/x-php
cosmetics
1 <?php
2 // $Id: publishcontent.install,v 1.2 2009/01/17 23:44:34 malaussene Exp $
3
4 /**
5 * Implementation of hook_install().
6 *
7 * In drupal 5, you cannot alter menu, so you have to make sure
8 * publishcontent_menu (hook_menu) is called before node_menu
9 * so that node/{$nid} is registered by publishcntent_menu rather
10 * than node_menu.
11 */
12 function publishcontent_install() {
13 db_query("UPDATE {system} SET weight='-1' WHERE name = 'publishcontent' AND type='module';");
14 }

  ViewVC Help
Powered by ViewVC 1.1.2