I need those constants a bit more easily accessible.

This commit is contained in:
defacer 2005-02-01 07:39:21 +00:00
parent 7221d319be
commit 8bd3fad303
2 changed files with 6 additions and 8 deletions

View File

@ -106,6 +106,12 @@ define('PARAM_URL', 0x0080);
define('PARAM_LOCALURL',0x0180); // NOT orthogonal to the others! Implies PARAM_URL!
define('PARAM_CLEANFILE',0x0200);
/**
* Definition of page types
*/
define('PAGE_COURSE_VIEW', 'course-view');
define('PAGE_QUIZ_VIEW', 'mod-quiz-view');
/// PARAMETER HANDLING ////////////////////////////////////////////////////
/**

View File

@ -19,14 +19,6 @@ if(record_exists('block_instance', 'pagetype', 'course')) {
}
// End of dirty compatibility hack -- remove this before 1.5 goes gold
/// Constants
/**
* Definition of course page type.
*/
define('PAGE_COURSE_VIEW', 'course-view');
define('PAGE_QUIZ_VIEW', 'mod-quiz-view');
/**
* Factory function page_create_object(). Called with a pagetype identifier and possibly with
* its numeric ID. Returns a fully constructed page_base subclass you can work with.