| 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 |
}
|