Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)

Functions

 block_comments_comment_display ($comments, $args)
 Validate comment data before displaying comments.
 
 block_comments_comment_permissions ($args)
 Running addtional permission check on plugins.
 
 block_comments_comment_validate ($comment_param)
 Validate comment parameter before perform other comments actions.
 

Detailed Description

Function Documentation

◆ block_comments_comment_display()

block_comments_comment_display ( $comments,
$args )

Validate comment data before displaying comments.

Parameters
stdClass$comment
stdClass$args
Return values
boolean

◆ block_comments_comment_permissions()

block_comments_comment_permissions ( $args)

Running addtional permission check on plugins.

Parameters
stdClass$args
Return values
array

◆ block_comments_comment_validate()

block_comments_comment_validate ( $comment_param)

Validate comment parameter before perform other comments actions.

Parameters
stdClass$comment_param{ context => context the context object courseid => int course id cm => stdClass course module object commentarea => string comment area itemid => int itemid }
Return values
boolean