You are here

function biblio_install in Bibliography Module 6

Same name and namespace in other branches
  1. 5 biblio.install \biblio_install()
  2. 6.2 biblio.install \biblio_install()
  3. 7.3 biblio.install \biblio_install()
  4. 7 biblio.install \biblio_install()
  5. 7.2 biblio.install \biblio_install()

@file Install file for biblio module

File

./biblio.install, line 8
Install file for biblio module

Code

function biblio_install() {
  $result = array();
  drupal_install_schema('biblio');
  $result[] = _add_db_field_data();
  $result[] = _add_publication_types();
  $result[] = _add_custom_field_data();

  //_enable_biblio_keyword_vocabulary();
  $result[] = _set_system_weight();
  if (count($result) == count(array_filter($result))) {
    drupal_set_message(t('The biblio module has successfully added its tables to the database.'));
  }
  else {
    drupal_set_message(t('Drupal encountered some errors while attempting to install the database tables for the biblio module.'), 'error');
  }
}