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

Contents of /contributions/modules/taxonomy_limit/taxonomy_limit.install

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


Revision 1.2 - (show annotations) (download) (as text)
Fri Jun 12 16:41:47 2009 UTC (5 months, 2 weeks ago) by mvc
Branch: MAIN
CVS Tags: DRUPAL-6--0-1, HEAD
Changes since 1.1: +7 -3 lines
File MIME type: text/x-php
drupal 6 port: fixes #262408 by funana, #221749 by jesss, #130829 by mariuss, #295267 by pebosi (see README.txt for upgrade notes)
1 <?php
2 // $Id: taxonomy_limit.install,v 1.1.2.2 2007/01/04 16:21:32 codexmas Exp $
3
4 /**
5 * @file taxonomy_limit.install
6 */
7
8 /**
9 * Implementation of hook_install().
10 */
11 function taxonomy_limit_install() {
12 switch ($GLOBALS['db_type']) {
13 case 'mysql':
14 case 'mysqli':
15 break;
16 case 'pgsql':
17 break;
18 }
19 }
20
21 /**
22 * Implementation of hook_uninstall().
23 */
24 function taxonomy_limit_uninstall() {
25 // Loop through all content types
26 $types = node_get_types('names');
27 foreach ($types AS $type => $name) {
28 variable_del('taxonomy_limit_'. $type);
29 }
30 variable_del('taxonomy_limit_types');
31 }

  ViewVC Help
Powered by ViewVC 1.1.2