You are here

epub.install in Epub 7

Same filename and directory in other branches
  1. 8 epub.install
  2. 6 epub.install

File

epub.install
View source
<?php

function epub_install() {
  foreach (db_select('file_managed', 'fid')
    ->fields('fid', array(
    'fid',
  ))
    ->execute()
    ->fetchCol() as $fid) {
    $file = file_load($fid);
    if (epub_reset_mimetype($file)) {
      watchdog('epub', t('File @fid mimetype was reset.', array(
        '@fid' => $fid,
      )));
    }
  }
}
function epub_uninstall() {
  file_unmanaged_delete_recursive('public://epub_content/');
}

Functions