From 44055a4a9dcb72e3eca906700b62fd386be6d1ad Mon Sep 17 00:00:00 2001
From: Penny Leach <penny@mjollnir.org>
Date: Tue, 14 Oct 2008 18:24:24 +0100
Subject: [PATCH] [UPSTREAM] add hook in admin stickyblocks for local/

to define extra pageformats that are stickyblock-enabled.
---
 admin/stickyblocks.php |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/admin/stickyblocks.php b/admin/stickyblocks.php
index 2eeebd4..7b9d07c 100644
--- a/admin/stickyblocks.php
+++ b/admin/stickyblocks.php
@@ -13,13 +13,11 @@
                        PAGE_COURSE_VIEW => array('id' => PAGE_COURSE_VIEW,
                                                 'lib' => '/lib/pagelib.php',
                                                 'name' => get_string('stickyblockscourseview','admin')),
                       // ... more?
                       );
     );
+
+    if (file_exists($CFG->dirroot . '/local/lib.php')) {
+        require_once($CFG->dirroot . '/local/lib.php;);
+        if (function_exists('local_get_sticky_pagetypes')) {
+            $pagetypes = array_merge($pagetypes, local_get_sticky_pagetypes());
+        }
+    }

     // for choose_from_menu
     $options = array();
-- 
1.5.6.5

