You are here

function amp_node_delete in Accelerated Mobile Pages (AMP) 7

Implements hook_node_delete().

File

./amp.module, line 1542

Code

function amp_node_delete($node) {
  if (in_array($node->type, amp_get_enabled_types())) {

    // We don't need the amp table for this node if it gets removed.
    amp_db_remove($node->nid);
    amp_clear_cache($node->nid);
  }
}