<?php
// $Id: advanced_forum.pages_default.inc,v 1.1.2.1 2009/07/29 23:06:40 merlinofchaos Exp $

/**
 * @file
 * Default panel handlers for Advanced Forum.
 */

/**
 * Loads the included panels.
 *
 * This function is used instead of panels ability to autodiscover a panels
 * export .inc because this allows us to put each page in its own file.
 * Thanks to Moshe and OG for the code.
 */
function advanced_forum_default_page_manager_handlers() {
  $files = file_scan_directory(drupal_get_path('module', 'advanced_forum') . '/includes/panels', '.handler$');
  foreach ($files as $absolute => $file) {
    $handler = NULL;
    require_once $absolute;
    if (isset($handler)) {
      $handlers[$file->name] = $handler;
    }
  }
  return $handlers;
}
