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

Diff of /contributions/modules/biblio/biblio.install

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

revision 1.77.2.1 by rjerome, Mon Oct 26 20:47:07 2009 UTC revision 1.77.2.2 by rjerome, Fri Oct 30 02:33:09 2009 UTC
# Line 1  Line 1 
1  <?PHP  <?PHP
2  // $Id: biblio.install,v 1.77 2009/10/01 01:45:42 rjerome Exp $  // $Id: biblio.install,v 1.77.2.1 2009/10/26 20:47:07 rjerome Exp $
3  function biblio_install() {  function biblio_install() {
4    $result = array();    $result = array();
5    
# Line 15  function biblio_install() { Line 15  function biblio_install() {
15    
16    $result[] = _set_system_weight();    $result[] = _set_system_weight();
17    
18    if (count($result) == count(array_filter($result))) {  //  if (count($result) == count(array_filter($result))) {
19      drupal_set_message(t('The biblio module has successfully added its tables to the database.'));  //    drupal_set_message(t('The biblio module has successfully added its tables to the database.'));
20    }  //  }
21    else {  //  else {
22      drupal_set_message(t('Drupal encountered some errors while attempting to install the database tables for the biblio module.'), 'error');  //    drupal_set_message(t('Drupal encountered some errors while attempting to install the database tables for the biblio module.'), 'error');
23    }  //  }
24  }  }
25    
26  function biblio_enable() {  function biblio_enable() {
# Line 42  function _enable_biblio_vocabularies(){ Line 42  function _enable_biblio_vocabularies(){
42  }  }
43    
44  function biblio_disable() {  function biblio_disable() {
45      $vids = array();
46    if (module_exists('taxonomy')) {    if (module_exists('taxonomy')) {
47      $voc = taxonomy_get_vocabularies();      $voc = taxonomy_get_vocabularies();
48      foreach ($voc as $vid => $vocabulary) {      foreach ($voc as $vid => $vocabulary) {
# Line 1090  function _add_publication_types() Line 1091  function _add_publication_types()
1091          ))->execute();          ))->execute();
1092    
1093    }    }
1094   return $result;   return;
1095  }  }
1096    
1097  function _add_db_field_data_XML() {  function _add_db_field_data_XML() {

Legend:
Removed from v.1.77.2.1  
changed lines
  Added in v.1.77.2.2

  ViewVC Help
Powered by ViewVC 1.1.3