You are here

function biblio_update_7017 in Bibliography Module 7.2

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

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

File

./biblio.install, line 1853

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');
    }
  }
  if (module_exists('views')) {

    // rebuild the data tables
    views_invalidate_cache();
  }
}