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

Contents of /contributions/modules/taxonomy_vtn/taxonomy_vtn.install

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


Revision 1.1 - (show annotations) (download) (as text)
Thu Apr 17 18:37:34 2008 UTC (19 months, 1 week ago) by tomaszx
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA1, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
Initial commit of taxonomy_vtn module.
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of hook_enable().
6 */
7 function taxonomy_vtn_enable() {
8 // check for locale
9 $xlanguage = language_default();
10
11 if ( setlocale(LC_ALL, $xlanguage->language .'_'. strtoupper($xlanguage->language) .'.UTF8') ) {
12 // set locale back to default
13 setlocale(LC_ALL, NULL); // without this count($arr) not work properly
14
15 variable_set('taxonomy_vtn_server_support_setlocale', 1);
16 }
17 }
18
19 /**
20 * Implementation of hook_uninstall().
21 */
22 function taxonomy_vtn_uninstall() {
23 variable_del('taxonomy_vtn_server_support_setlocale');
24 variable_del('taxonomy_vtn_use_setlocale');
25
26 variable_del('taxonomy_vtn_vocabularies_show_empty_vocs');
27 variable_del('taxonomy_vtn_vocabularies_show_count_terms');
28 variable_del('taxonomy_vtn_vocabularies_show_voc_desc');
29 variable_del('taxonomy_vtn_vocabularies_count_group_vocabularies');
30 variable_del('taxonomy_vtn_vocabularies_count_column_vocs');
31 variable_del('taxonomy_vtn_vocabularies_goto_terms_if_one');
32
33 variable_del('taxonomy_vtn_terms_show_empty_terms');
34 variable_del('taxonomy_vtn_terms_show_count_nodes');
35 variable_del('taxonomy_vtn_terms_show_term_desc');
36 variable_del('taxonomy_vtn_terms_show_synonyms');
37 variable_del('taxonomy_vtn_terms_count_column_terms');
38
39 variable_del('taxonomy_vtn_nodes_show_count_comments');
40 variable_del('taxonomy_vtn_nodes_count_column_nodes');
41 variable_del('taxonomy_vtn_nodes_show_empty_count_comments');
42 variable_del('taxonomy_vtn_nodes_show_nodes_index');
43 }
44

  ViewVC Help
Powered by ViewVC 1.1.2