Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
45573d5a
Commit
45573d5a
authored
Oct 08, 2011
by
Petr Skoda
Browse files
move book specific stuff to locallib.php
parent
3f24450d
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib.php
View file @
45573d5a
...
...
@@ -25,17 +25,14 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
;
define
(
'BOOK_NUM_NONE'
,
'0'
);
define
(
'BOOK_NUM_NUMBERS'
,
'1'
);
define
(
'BOOK_NUM_BULLETS'
,
'2'
);
define
(
'BOOK_NUM_INDENTED'
,
'3'
);
/**
* Returns list of available numbering types
* @return array
*/
function
book_get_numbering_types
()
{
global
$CFG
;
// required for the include
require_once
(
dirname
(
__FILE__
)
.
'/locallib.php'
);
return
array
(
BOOK_NUM_NONE
=>
get_string
(
'numbering0'
,
'mod_book'
),
BOOK_NUM_NUMBERS
=>
get_string
(
'numbering1'
,
'mod_book'
),
BOOK_NUM_BULLETS
=>
get_string
(
'numbering2'
,
'mod_book'
),
...
...
locallib.php
View file @
45573d5a
...
...
@@ -28,6 +28,11 @@ defined('MOODLE_INTERNAL') || die;
require_once
(
$CFG
->
dirroot
.
'/mod/book/lib.php'
);
require_once
(
$CFG
->
libdir
.
'/filelib.php'
);
define
(
'BOOK_NUM_NONE'
,
'0'
);
define
(
'BOOK_NUM_NUMBERS'
,
'1'
);
define
(
'BOOK_NUM_BULLETS'
,
'2'
);
define
(
'BOOK_NUM_INDENTED'
,
'3'
);
/**
* Preload book chapters and fix toc structure if necessary.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment