Fix for Code

  1.         foreach ($layers as $layer) {
  2.           if ($layer->entity_type == $entity_type) {
  3.             if ($i == count($selectors) - 1) {
  4.               $index->contexts['page']->browsable_path = $selectors_path;
  5.               return array($layer, $entity_data_id);
  6.             }
  7.             else {
  8.               // We recursively loop through the layers, so go down one level.
  9.               $layers = $layer->layers;
  10.               break;
  11.             }
  12.           }
  13.         }

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.