You are here

function biblio_update_7017 in Bibliography Module 7

Same name and namespace in other branches
  1. 7.2 biblio.install \biblio_update_7017()

Remove views export handlers in sub-modules (if they still exist)

File

./biblio.install, line 2246

Code

function biblio_update_7017() {
  $dirs = array(
    'bibtexParse',
    'endnote',
    'RIS',
    'rtf',
  );
  foreach ($dirs as $dir) {
    $path = drupal_get_path('module', 'biblio') . '/modules/' . $dir . '/views';
    if (is_dir($path)) {
      $message = t('You have an inconsistancy in your installation, the directory: @path, should not exist!', array(
        '@path' => $path,
      ));
      drupal_set_message($message, 'error');
    }
  }

  // Rebuild the data tables.
  if (module_exists('views')) {
    views_invalidate_cache();
  }
}