MDL-26854 COMMENT
1. added pluginname_comment_validate callback to comments api
2. change permission callback defaults to false
3. Tidied up serveal areas of comments and implemented callback to
ignore system permissions for view (credits to Sam Hemelryk)
AMOS BEGIN
MOV [modulerejectcomment,error],[callbackrejectcomment,error]
AMOS END
This commit is contained in:
+6
-1
@@ -32,6 +32,7 @@ $string['blockcannotread'] = 'Could not read data for blockid= {$a}';
|
||||
$string['blockdoesnotexist'] = 'This block does not exist';
|
||||
$string['blockdoesnotexistonpage'] = 'This block (id={$a->instanceid}) does not exist on this page ({$a->url}).';
|
||||
$string['blocknameconflict'] = 'Naming conflict: block {$a->name} has the same title with an existing block: {$a->conflict}!';
|
||||
$string['callbackrejectcomment'] = 'Comment callback rejected this comment.';
|
||||
$string['cannotaddcoursemodule'] = 'Could not add a new course module';
|
||||
$string['cannotaddcoursemoduletosection'] = 'Could not add the new course module to that section';
|
||||
$string['cannotaddmodule'] = '{$a} module could not be added to the module list!';
|
||||
@@ -262,6 +263,11 @@ $string['invalidbulkenrolop'] = 'Invalid bulk enrolment operation requested.';
|
||||
$string['invalidcategory'] = 'Incorrect category!';
|
||||
$string['invalidcategoryid'] = 'Incorrect category id!';
|
||||
$string['invalidcomment'] = 'Comment is incorrect';
|
||||
$string['invalidcommentid'] = 'Invalid comment id';
|
||||
$string['invalidcommentitemid'] = 'Invalid comment itemid';
|
||||
$string['invalidcommentarea'] = 'Invalid comment area';
|
||||
$string['invalidcommentparam'] = 'Invalid comment parameters';
|
||||
$string['invalidcomponent'] = 'Invalid component name';
|
||||
$string['invalidconfirmdata'] = 'Invalid confirmation data';
|
||||
$string['invalidcontext'] = 'Invalid context';
|
||||
$string['invalidcourse'] = 'Invalid course';
|
||||
@@ -344,7 +350,6 @@ $string['moduledisable'] = 'This module ({$a}) has been disabled for this partic
|
||||
$string['moduledoesnotexist'] = 'This module does not exist';
|
||||
$string['moduleinstancedoesnotexist'] = 'The instance of this module does not exist';
|
||||
$string['modulemissingcode'] = 'Module {$a} is missing the code needed to perform this function';
|
||||
$string['modulerejectcomment'] = 'Module rejects to add this comment';
|
||||
$string['multiplerecordsfound'] = 'Multiple records found, only one record expected.';
|
||||
$string['multiplerestorenotallow'] = 'Multiple restore execution not allowed!';
|
||||
$string['mustbeloggedin'] = 'You must be logged in to do this';
|
||||
|
||||
Reference in New Issue
Block a user