/[drupal]/contributions/sandbox/jjeff/taxonomynode/taxonomynode.install
ViewVC logotype

Contents of /contributions/sandbox/jjeff/taxonomynode/taxonomynode.install

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


Revision 1.1 - (show annotations) (download) (as text)
Wed Nov 1 19:23:04 2006 UTC (3 years ago) by jjeff
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
Module to associate nodes with a given term from a given vocabulary.
Node appears at top of taxonomy listing page for these terms.
1 <?php
2 // $Id $
3
4 function taxonomynode_install(){
5 switch ($GLOBALS['db_type']) {
6 case 'mysql':
7 case 'mysqli':
8 db_query("CREATE TABLE taxonomy_node (
9 args varchar(128) NOT NULL default '',
10 nid int(12) NOT NULL default '0',
11 PRIMARY KEY (args),
12 UNIQUE KEY nid (nid)
13 ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
14
15 break;
16 }
17 drupal_set_message(t('Database tables for Taxonomy Node module have been installed.'));
18 }

  ViewVC Help
Powered by ViewVC 1.1.2