You are here

function insert_block_nodeapi in Insert Block 5

File

./insert_block.module, line 42

Code

function insert_block_nodeapi(&$node, $op, $arg) {
  if ($op == 'alter') {
    $node->body = _insert_block_substitute_tags($node, 'body');
    $node->teaser = _insert_block_substitute_tags($node, 'teaser');
  }
  if ($op == 'print') {
    $node->content['body']['#value'] = _insert_block_substitute_tags($node, 'body');
  }
}