Skip to content

Commit

Permalink
MDL-40867 fix misleading PHPdocs for _get_coursemodule_info
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Jul 26, 2013
1 parent cd08b5c commit 205a3cd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mod/assignment/lib.php
Expand Up @@ -3595,7 +3595,7 @@ function assignment_get_all_submissions($assignment, $sort="", $dir="DESC") {
* Given a course_module object, this function returns any "extra" information that may be needed
* when printing this activity in a course listing. See get_array_of_activities() in course/lib.php.
*
* @param $coursemodule object The coursemodule object (record).
* @param stdClass $coursemodule object The coursemodule object (record).
* @return cached_cm_info An object on information that the courses will know about (most noticeably, an icon).
*/
function assignment_get_coursemodule_info($coursemodule) {
Expand Down
2 changes: 1 addition & 1 deletion mod/label/lib.php
Expand Up @@ -118,7 +118,7 @@ function label_delete_instance($id) {
*
* @global object
* @param object $coursemodule
* @return object|null
* @return cached_cm_info|null
*/
function label_get_coursemodule_info($coursemodule) {
global $DB;
Expand Down
2 changes: 1 addition & 1 deletion mod/page/lib.php
Expand Up @@ -238,7 +238,7 @@ function page_user_complete($course, $user, $mod, $page) {
*
* See {@link get_array_of_activities()} in course/lib.php
*
* @param cm_info $coursemodule
* @param stdClass $coursemodule
* @return cached_cm_info Info to customise main page display
*/
function page_get_coursemodule_info($coursemodule) {
Expand Down
2 changes: 1 addition & 1 deletion mod/resource/lib.php
Expand Up @@ -225,7 +225,7 @@ function resource_user_complete($course, $user, $mod, $resource) {
*
* See {@link get_array_of_activities()} in course/lib.php
*
* @param cm_info $coursemodule
* @param stdClass $coursemodule
* @return cached_cm_info info
*/
function resource_get_coursemodule_info($coursemodule) {
Expand Down
2 changes: 1 addition & 1 deletion mod/url/lib.php
Expand Up @@ -243,7 +243,7 @@ function url_user_complete($course, $user, $mod, $url) {
* See {@link get_array_of_activities()} in course/lib.php
*
* @param object $coursemodule
* @return object info
* @return cached_cm_info info
*/
function url_get_coursemodule_info($coursemodule) {
global $CFG, $DB;
Expand Down

0 comments on commit 205a3cd

Please sign in to comment.