Parent Directory
|
Revision Log
|
Revision Graph
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 |