Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function diamond_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
- - if ($op == 'view') {
- + if ($op == 'view' && $node->type == 'tony_blog_post') {
- $chunk = chunk_split($node->content['body']['#value'], 200, '--diamond--');
- $diamond = explode('--diamond--', $chunk);
- $i = 1;
- @@ -43,12 +43,16 @@
- 'literally',
- 'essentially',
- 'basically',
- - 'Drupal multi-site',
- + 'Drupal multi-site global platform',
- "let's all say this out loud",
- "it's amateur hour around here",
- 'this ends tonight',
- 'been doing this for twenty years',
- 'Frank is our savior',
- + 'shuffle shuffle shuffle',
- + 'clap clap clap',
- + 'this is unprofessional',
- + 'after all I\'ve done for you guys',
- );
- return $replacements;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement