diff --git a/school.d/default.inc b/school.d/default.inc --- a/school.d/default.inc +++ b/school.d/default.inc @@ -18,6 +18,9 @@ * along with slate_permutate. If not, see . */ +$inc_dir = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR; +require_once $inc_dir . 'class.page.php'; + function default_info() { return array('name' => 'Generic College', @@ -51,3 +54,25 @@ function default_instructions_html() EOF; } + +/** + * \brief + * A generic fallback for school_registration_html(). + * + * \see school_registration_html() + */ +function default_registration_html(Page $page, array $school, array $courses) +{ + $html = '' + . '

' . PHP_EOL + . ' Enter these codes into your school\'s online course registration' . PHP_EOL + . ' system (' . htmlentities($school['name']) . '\'s website)' . PHP_EOL + . ' to register for classes:' . PHP_EOL + . '

' . PHP_EOL + . ' ' . PHP_EOL; + return $html; +}