Skip to content

Commit

Permalink
MDL-41283 report_participation: Fixed legacy actions returned from api's
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Apr 15, 2014
1 parent b2b4ec3 commit 7b7bb92
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions mod/book/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function book_scale_used_anywhere($scaleid) {
function book_get_view_actions() {
global $CFG; // necessary for includes

$return = array('view', 'view all');
$return = array('view');

$plugins = core_component::get_plugin_list('booktool');
foreach ($plugins as $plugin => $dir) {
Expand Down Expand Up @@ -262,7 +262,7 @@ function book_get_view_actions() {
function book_get_post_actions() {
global $CFG; // necessary for includes

$return = array('update');
$return = array();

$plugins = core_component::get_plugin_list('booktool');
foreach ($plugins as $plugin => $dir) {
Expand Down
2 changes: 1 addition & 1 deletion mod/chat/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ function chat_print_error($level, $msg) {
* @return array
*/
function chat_get_view_actions() {
return array('view','view all','report');
return array('view');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/choice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ function choice_get_choice($choiceid) {
* @return array
*/
function choice_get_view_actions() {
return array('view','view all','report');
return array('view');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/feedback/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ function feedback_scale_used_anywhere($scaleid) {
* @return array
*/
function feedback_get_view_actions() {
return array('view', 'view all');
return array('view');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions mod/folder/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function folder_reset_userdata($data) {
* @return array
*/
function folder_get_view_actions() {
return array('view', 'view all');
return array('view');
}

/**
Expand All @@ -94,7 +94,7 @@ function folder_get_view_actions() {
* @return array
*/
function folder_get_post_actions() {
return array('update', 'add');
return array();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2658,7 +2658,7 @@ function glossary_get_paging_bar($totalcount, $page, $perpage, $baseurl, $maxpag
* @return array
*/
function glossary_get_view_actions() {
return array('view','view all','view entry');
return array('view','view entry');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions mod/imscp/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function imscp_reset_userdata($data) {
* @return array
*/
function imscp_get_view_actions() {
return array('view', 'view all');
return array('view');
}

/**
Expand All @@ -89,7 +89,7 @@ function imscp_get_view_actions() {
* @return array
*/
function imscp_get_post_actions() {
return array('update', 'add');
return array();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/lesson/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ function lesson_grade_item_delete($lesson) {
* @return array
*/
function lesson_get_view_actions() {
return array('view','view all');
return array('view');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions mod/page/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function page_reset_userdata($data) {
* @return array
*/
function page_get_view_actions() {
return array('view','view all');
return array('view');
}

/**
Expand All @@ -87,7 +87,7 @@ function page_get_view_actions() {
* @return array
*/
function page_get_post_actions() {
return array('update', 'add');
return array();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ function quiz_update_events($quiz, $override = null) {
* @return array
*/
function quiz_get_view_actions() {
return array('view', 'view all', 'report', 'review');
return array('view');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions mod/resource/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function resource_reset_userdata($data) {
* @return array
*/
function resource_get_view_actions() {
return array('view','view all');
return array('view');
}

/**
Expand All @@ -87,7 +87,7 @@ function resource_get_view_actions() {
* @return array
*/
function resource_get_post_actions() {
return array('update', 'add');
return array();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/scorm/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ function scorm_grade_item_delete($scorm) {
* @return array
*/
function scorm_get_view_actions() {
return array('pre-view', 'view', 'view all', 'report');
return array('pre-view', 'view');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/survey/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ function survey_print_graph($url) {
* @return array
*/
function survey_get_view_actions() {
return array('download','view all','view form','view graph','view report');
return array('download','view form');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions mod/url/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function url_reset_userdata($data) {
* @return array
*/
function url_get_view_actions() {
return array('view', 'view all');
return array('view');
}

/**
Expand All @@ -89,7 +89,7 @@ function url_get_view_actions() {
* @return array
*/
function url_get_post_actions() {
return array('update', 'add');
return array();
}

/**
Expand Down

0 comments on commit 7b7bb92

Please sign in to comment.