Fix for D6 Code

  1. function phptemplate_preprocess_page(&$vars) {
  2.   if (6">module_exists('path')) {
  3.    $alias = 6">drupal_get_path_alias(str_replace('/edit','',$_GET['q']));
  4.     if ($alias != $_GET['q']) {
  5.       $suggestions = array();
  6.       $template_filename = 'page';
  7.       foreach (explode('/', $alias) as $path_part) {
  8.         $template_filename = $template_filename . '-' . $path_part;
  9.         $suggestions[] = $template_filename;
  10.       }
  11.     }
  12.     $vars['template_files'] = $suggestions;  
  13.   }
  14. }

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.