You are here

function blockcache_alter_comment in Block Cache Alter 6

Implementation of hook_comment().

File

./blockcache_alter.module, line 331
Block Cache alter.

Code

function blockcache_alter_comment($comment, $op) {
  switch ($op) {
    case 'insert':
      $thiscnode = node_load($comment['nid']);
      $nodetype = $thiscnode->type;
      _blockcache_alter_cleanup('comment', $nodetype);
      break;
    case 'update':
      $thiscnode = node_load($comment['nid']);
      $aabb = $thiscnode->type;
      _blockcache_alter_cleanup('comment', $nodetype);
      break;
    case 'delete':
      $thiscnode = node_load($comment->nid);
      $nodetype = $thiscnode->type;
      _blockcache_alter_cleanup('comment', $nodetype);
      break;
  }
}