Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plugins bot
moodle-plugins-snapshots
Commits
ef75a648
Commit
ef75a648
authored
Jan 20, 2017
by
Pau Ferrer
Browse files
MDL-57737 glossary: Add entry description accepts HTML
parent
5130953c
Changes
2
Hide whitespace changes
Inline
Side-by-side
mod/glossary/classes/external.php
View file @
ef75a648
...
...
@@ -1412,7 +1412,7 @@ class mod_glossary_external extends external_api {
return
new
external_function_parameters
(
array
(
'glossaryid'
=>
new
external_value
(
PARAM_INT
,
'Glossary id'
),
'concept'
=>
new
external_value
(
PARAM_TEXT
,
'Glossary concept'
),
'definition'
=>
new
external_value
(
PARAM_
TEXT
,
'Glossary concept definition'
),
'definition'
=>
new
external_value
(
PARAM_
RAW
,
'Glossary concept definition'
),
'definitionformat'
=>
new
external_format_value
(
'definition'
),
'options'
=>
new
external_multiple_structure
(
new
external_single_structure
(
...
...
mod/glossary/tests/external_test.php
View file @
ef75a648
...
...
@@ -1121,7 +1121,7 @@ class mod_glossary_external_testcase extends externallib_advanced_testcase {
$this
->
setAdminUser
();
$concept
=
'A concept'
;
$definition
=
'A definition'
;
$definition
=
'
<p>
A definition
</p>
'
;
$return
=
mod_glossary_external
::
add_entry
(
$glossary
->
id
,
$concept
,
$definition
,
FORMAT_HTML
);
$return
=
external_api
::
clean_returnvalue
(
mod_glossary_external
::
add_entry_returns
(),
$return
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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