Fix for Code

  1. <?php
  2. if (arg(0)=='node' && is_numeric(arg(1))) {
  3.   $node = node_load(arg(1));
  4.   switch ($node->type) {
  5.     case 'blog':
  6.       # code...
  7.       break;
  8.   }
  9. }
  10. ?>

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.