Fix for listcars_manufacturer.module

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * @file
  6.  * Attaches a view to the manufactures nodes with a list of cars available from this manufacturer
  7.  */
  8.  
  9. /**
  10.  * implementation of hook_nodeapi
  11.  */
  12. function listcars_manufacturer_nodeapi(&$node, $op, $teaser, $page) {
  13.   switch ($op) {
  14.     case 'load':
  15.       break;
  16.     case 'view':
  17.     if (!$teaser) {
  18.         if($node->type =="manufacturer"){
  19.             $node->content['body']['#value'] .= views_embed_view('vechiles', 'default');
  20.         }
  21.     }
  22.       break;
  23.     case 'presave':
  24.       break;
  25.     case 'insert':
  26.     case 'update':
  27.       break;
  28.     case 'delete':
  29.       break;
  30.     case 'prepare':
  31.       break;
  32.   }
  33. }

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.