You are here

function biblio_uninstall in Bibliography Module 6.2

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

Implements hook_uninstall().

File

./biblio.install, line 91
Install, update, and uninstall functions for the biblio module.

Code

function biblio_uninstall() {
  $batch = array(
    'title' => t('Remove all Biblio nodes'),
    'operations' => array(
      array(
        'biblio_batch_uninstall',
        array(),
      ),
    ),
    'progress_message' => t('Deleteing Biblio nodes...'),
    'finished' => 'biblio_batch_uninstall_finished',
    'file' => drupal_get_path('module', 'biblio') . '/biblio.install',
  );
  batch_set($batch);
}