Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. function diamond_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  2. - if ($op == 'view') {
  3. + if ($op == 'view' && $node->type == 'tony_blog_post') {
  4. $chunk = chunk_split($node->content['body']['#value'], 200, '--diamond--');
  5. $diamond = explode('--diamond--', $chunk);
  6. $i = 1;
  7. @@ -43,12 +43,16 @@
  8. 'literally',
  9. 'essentially',
  10. 'basically',
  11. - 'Drupal multi-site',
  12. + 'Drupal multi-site global platform',
  13. "let's all say this out loud",
  14. "it's amateur hour around here",
  15. 'this ends tonight',
  16. 'been doing this for twenty years',
  17. 'Frank is our savior',
  18. + 'shuffle shuffle shuffle',
  19. + 'clap clap clap',
  20. + 'this is unprofessional',
  21. + 'after all I\'ve done for you guys',
  22. );
  23.  
  24. return $replacements;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement