You are here

function epub_delete in Epub 6

Implementation of hook_delete().

File

./epub.module, line 240
Provide ePub content type and enable the creation of ePub files from book contents.

Code

function epub_delete($node) {
  $result = db_query(db_rewrite_sql('DELETE FROM {epub} WHERE nid = %d'), $node->nid);

  //  node_delete($node->nid);
  if (!$result) {
    drupal_set_message(t('Error occurred while removing the ePub.'), 'error');
  }

  //drupal_goto('admin/content/epub');
}