Fix for Example of your custom template variable

  1. function MIPLANTILLA_preprocess_node(&$vars, $hook) {
  2.  $node = $vars->$node;
  3.  if ($node->type == 'MITIPODECONTENIDO'){
  4.    $vars['texto'] =  $node->field_texto[0]['view'];
  5.    }
  6. }

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.