diff --git a/mod/book/lib.php b/mod/book/lib.php index 8f5fc8f1554..3eacef55fb8 100644 --- a/mod/book/lib.php +++ b/mod/book/lib.php @@ -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) { diff --git a/mod/chat/lib.php b/mod/chat/lib.php index 8bae752a1c8..4a939830884 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -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'); } /** diff --git a/mod/choice/lib.php b/mod/choice/lib.php index 59d9854ee1f..29935ee7da7 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -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'); } /** diff --git a/mod/feedback/lib.php b/mod/feedback/lib.php index c2de6904e6b..8940f46fee0 100644 --- a/mod/feedback/lib.php +++ b/mod/feedback/lib.php @@ -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'); } /** diff --git a/mod/folder/lib.php b/mod/folder/lib.php index aad0dc33cf7..3cf7675f03f 100644 --- a/mod/folder/lib.php +++ b/mod/folder/lib.php @@ -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'); } /** diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index d500ee687cd..24b699be5ab 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -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'); } /** diff --git a/mod/imscp/lib.php b/mod/imscp/lib.php index 639f443ec18..d14013f2fb8 100644 --- a/mod/imscp/lib.php +++ b/mod/imscp/lib.php @@ -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'); } /** diff --git a/mod/lesson/lib.php b/mod/lesson/lib.php index ddf4fb3f969..8a8d56137ec 100644 --- a/mod/lesson/lib.php +++ b/mod/lesson/lib.php @@ -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'); } /** diff --git a/mod/page/lib.php b/mod/page/lib.php index 6524cf2ebe1..e775e5855b9 100644 --- a/mod/page/lib.php +++ b/mod/page/lib.php @@ -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'); } /** diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 375602acd30..a573dd2fb9e 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -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'); } /** diff --git a/mod/resource/lib.php b/mod/resource/lib.php index 889efe6bda1..903e2278697 100644 --- a/mod/resource/lib.php +++ b/mod/resource/lib.php @@ -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'); } /** diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 590bd5777d0..8c36639d972 100644 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -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'); } /** diff --git a/mod/survey/lib.php b/mod/survey/lib.php index 09b6d17c8f2..ae3d171af60 100644 --- a/mod/survey/lib.php +++ b/mod/survey/lib.php @@ -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'); } /** diff --git a/mod/url/lib.php b/mod/url/lib.php index 2d7e10d36ad..b33b6e4fa3a 100644 --- a/mod/url/lib.php +++ b/mod/url/lib.php @@ -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'); } /**