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
cf051cc4
Commit
cf051cc4
authored
Apr 15, 2014
by
Marina Glancy
Browse files
Revert "MDL-41283 report_participation: Fixed legacy actions returned from api's"
This reverts commit
7b7bb92d
.
parent
7ca6a3fa
Changes
14
Hide whitespace changes
Inline
Side-by-side
mod/book/lib.php
View file @
cf051cc4
...
...
@@ -232,7 +232,7 @@ function book_scale_used_anywhere($scaleid) {
function
book_get_view_actions
()
{
global
$CFG
;
// necessary for includes
$return
=
array
(
'view'
);
$return
=
array
(
'view'
,
'view all'
);
$plugins
=
core_component
::
get_plugin_list
(
'booktool'
);
foreach
(
$plugins
as
$plugin
=>
$dir
)
{
...
...
@@ -262,7 +262,7 @@ function book_get_view_actions() {
function
book_get_post_actions
()
{
global
$CFG
;
// necessary for includes
$return
=
array
();
$return
=
array
(
'update'
);
$plugins
=
core_component
::
get_plugin_list
(
'booktool'
);
foreach
(
$plugins
as
$plugin
=>
$dir
)
{
...
...
mod/chat/lib.php
View file @
cf051cc4
...
...
@@ -1113,7 +1113,7 @@ function chat_print_error($level, $msg) {
* @return array
*/
function
chat_get_view_actions
()
{
return
array
(
'view'
);
return
array
(
'view'
,
'view all'
,
'report'
);
}
/**
...
...
mod/choice/lib.php
View file @
cf051cc4
...
...
@@ -667,7 +667,7 @@ function choice_get_choice($choiceid) {
* @return array
*/
function
choice_get_view_actions
()
{
return
array
(
'view'
);
return
array
(
'view'
,
'view all'
,
'report'
);
}
/**
...
...
mod/feedback/lib.php
View file @
cf051cc4
...
...
@@ -582,7 +582,7 @@ function feedback_scale_used_anywhere($scaleid) {
* @return array
*/
function
feedback_get_view_actions
()
{
return
array
(
'view'
);
return
array
(
'view'
,
'view all'
);
}
/**
...
...
mod/folder/lib.php
View file @
cf051cc4
...
...
@@ -80,7 +80,7 @@ function folder_reset_userdata($data) {
* @return array
*/
function
folder_get_view_actions
()
{
return
array
(
'view'
);
return
array
(
'view'
,
'view all'
);
}
/**
...
...
@@ -94,7 +94,7 @@ function folder_get_view_actions() {
* @return array
*/
function
folder_get_post_actions
()
{
return
array
();
return
array
(
'update'
,
'add'
);
}
/**
...
...
mod/glossary/lib.php
View file @
cf051cc4
...
...
@@ -2656,7 +2656,7 @@ function glossary_get_paging_bar($totalcount, $page, $perpage, $baseurl, $maxpag
* @return array
*/
function
glossary_get_view_actions
()
{
return
array
(
'view'
,
'view entry'
);
return
array
(
'view'
,
'view
all'
,
'view
entry'
);
}
/**
...
...
mod/imscp/lib.php
View file @
cf051cc4
...
...
@@ -75,7 +75,7 @@ function imscp_reset_userdata($data) {
* @return array
*/
function
imscp_get_view_actions
()
{
return
array
(
'view'
);
return
array
(
'view'
,
'view all'
);
}
/**
...
...
@@ -89,7 +89,7 @@ function imscp_get_view_actions() {
* @return array
*/
function
imscp_get_post_actions
()
{
return
array
();
return
array
(
'update'
,
'add'
);
}
/**
...
...
mod/lesson/lib.php
View file @
cf051cc4
...
...
@@ -537,7 +537,7 @@ function lesson_grade_item_delete($lesson) {
* @return array
*/
function
lesson_get_view_actions
()
{
return
array
(
'view'
);
return
array
(
'view'
,
'view all'
);
}
/**
...
...
mod/page/lib.php
View file @
cf051cc4
...
...
@@ -73,7 +73,7 @@ function page_reset_userdata($data) {
* @return array
*/
function
page_get_view_actions
()
{
return
array
(
'view'
);
return
array
(
'view'
,
'view all'
);
}
/**
...
...
@@ -87,7 +87,7 @@ function page_get_view_actions() {
* @return array
*/
function
page_get_post_actions
()
{
return
array
();
return
array
(
'update'
,
'add'
);
}
/**
...
...
mod/quiz/lib.php
View file @
cf051cc4
...
...
@@ -1282,7 +1282,7 @@ function quiz_update_events($quiz, $override = null) {
* @return array
*/
function
quiz_get_view_actions
()
{
return
array
(
'view'
);
return
array
(
'view'
,
'view all'
,
'report'
,
'review'
);
}
/**
...
...
mod/resource/lib.php
View file @
cf051cc4
...
...
@@ -73,7 +73,7 @@ function resource_reset_userdata($data) {
* @return array
*/
function
resource_get_view_actions
()
{
return
array
(
'view'
);
return
array
(
'view'
,
'view all'
);
}
/**
...
...
@@ -87,7 +87,7 @@ function resource_get_view_actions() {
* @return array
*/
function
resource_get_post_actions
()
{
return
array
();
return
array
(
'update'
,
'add'
);
}
/**
...
...
mod/scorm/lib.php
View file @
cf051cc4
...
...
@@ -722,7 +722,7 @@ function scorm_grade_item_delete($scorm) {
* @return array
*/
function
scorm_get_view_actions
()
{
return
array
(
'pre-view'
,
'view'
);
return
array
(
'pre-view'
,
'view'
,
'view all'
,
'report'
);
}
/**
...
...
mod/survey/lib.php
View file @
cf051cc4
...
...
@@ -686,7 +686,7 @@ function survey_print_graph($url) {
* @return array
*/
function
survey_get_view_actions
()
{
return
array
(
'download'
,
'view
form
'
);
return
array
(
'download'
,
'view
all'
,
'view form'
,
'view graph'
,
'view report
'
);
}
/**
...
...
mod/url/lib.php
View file @
cf051cc4
...
...
@@ -75,7 +75,7 @@ function url_reset_userdata($data) {
* @return array
*/
function
url_get_view_actions
()
{
return
array
(
'view'
);
return
array
(
'view'
,
'view all'
);
}
/**
...
...
@@ -89,7 +89,7 @@ function url_get_view_actions() {
* @return array
*/
function
url_get_post_actions
()
{
return
array
();
return
array
(
'update'
,
'add'
);
}
/**
...
...
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