Fix for Code

  1. <?php
  2. class indexEntity {
  3.   public $children = array();
  4.   public $children_count = 0;
  5.   public $depth = NULL;
  6.   public $data = NULL;
  7.  
  8.   function __construct(stdClass $data, $depth) {
  9.     $this->data = $data;
  10.     $this->depth = $depth;
  11.   }
  12.  
  13.   /**
  14.    * Render this entity.
  15.    */
  16.   function render() {
  17.     $entity_types_info = index_entity_types_get();
  18.     $theme_info = $entity_types_info[$this->index_entity_type]['#theme_info'];
  19.     require_once('./'. drupal_get_path('module', $theme_info['#module']) . '/' . $theme_info['#file']);
  20.  
  21.     return theme($theme_info['#theme'], $this);
  22.   }
  23. }

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.