function epub_access in Epub 6
Implementation of hook_access().
File
- ./
epub.module, line 40 - Provide ePub content type and enable the creation of ePub files from book contents.
Code
function epub_access($op, $node, $account) {
switch ($op) {
case 'create':
case 'delete':
case 'update':
return user_access('administer epub', $account);
case 'view':
return user_access('access epub', $account);
default:
return FALSE;
}
}