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

Contents of /contributions/modules/biblio_facets/biblio_facets.install

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


Revision 1.6 - (show annotations) (download) (as text)
Wed Apr 23 14:18:43 2008 UTC (19 months ago) by davidlesieur
Branch: MAIN
CVS Tags: DRUPAL-5--1-0-BETA2, DRUPAL-5--1-0-BETA1, HEAD
Changes since 1.5: +4 -2 lines
File MIME type: text/x-php
Updated uninstall process.
1 <?php
2 // $Id: biblio_facets.install,v 1.5 2008/01/18 01:30:59 davidlesieur Exp $
3
4 /**
5 * Implementation of hook_enable().
6 */
7 function biblio_facets_enable() {
8 if (!module_exists('biblio_normalize')) {
9 drupal_set_message(t('The <a href="@url">Biblio Normalize</a> module is not installed. You may still use Biblio Facets, but values in multiple-values fields (such as Authors and Keywords) will be listed as single values in Guided search.', array('@url' => url('http://drupal.org/project/biblio_normalize'))), 'error');
10 }
11 }
12
13 /**
14 * Implementation of hook_uninstall().
15 */
16 function biblio_facets_uninstall() {
17 if (db_table_exists('faceted_search_filters')) {
18 db_query("DELETE FROM {faceted_search_filters} WHERE filter_key = 'biblio_field'");
19 }
20 }
21
22 /**
23 * Remove abandoned variable.
24 */
25 function biblio_facets_update_1() {
26 $ret = array();
27 variable_del('biblio_facets');
28 return $ret;
29 }

  ViewVC Help
Powered by ViewVC 1.1.2