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(); }
<?php $GO_SCRIPTS_JS .= 'GO.comments.enableReadMore="' . \GO\Comments\CommentsModule::loadReadMore() . '";'; $GO_SCRIPTS_JS .= 'GO.comments.categoryRequired="' . \GO\Comments\CommentsModule::commentsRequired() . '";';