epub.install in Epub 7
Same filename and directory in other branches
File
epub.installView 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
Name | Description |
---|---|
epub_install | |
epub_uninstall |