Exemple #1
0
 protected function init()
 {
     $this->columns['model_id']['required'] = true;
     $this->columns['model_type_id']['required'] = true;
     $this->columns['category_id']['required'] = \GO\Comments\CommentsModule::commentsRequired();
     return parent::init();
 }
Exemple #2
0
<?php

$GO_SCRIPTS_JS .= 'GO.comments.enableReadMore="' . \GO\Comments\CommentsModule::loadReadMore() . '";';
$GO_SCRIPTS_JS .= 'GO.comments.categoryRequired="' . \GO\Comments\CommentsModule::commentsRequired() . '";';