You are here

function library_install in Library 5.2

Same name and namespace in other branches
  1. 6.2 library.install \library_install()
  2. 6 library.install \library_install()
  3. 7 library.install \library_install()

Implementation of hook_install()

File

./library.install, line 138
@author Jess Straatmann library.install Install and uninstall all required databases. Also do incremental database updates.

Code

function library_install() {
  drupal_install_schema('library');
  db_query("INSERT INTO {library_actions} (name, status_change) VALUES ('%s', %d)", 'Check Out', 1);
  db_query("INSERT INTO {library_actions} (name, status_change) VALUES ('%s', %d)", 'Check In', 2);

  // Notify of changes
  drupal_set_message(t('Library module successfully installed.'));
}