2010-11-30 01:32:05 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Comments Default Configuration
|
|
|
|
*
|
2010-11-30 11:06:22 +01:00
|
|
|
* To enable comments on your own {@link DataObject}'s you need to
|
|
|
|
* call Commenting::add_comments($object_name, $settings);
|
|
|
|
*
|
|
|
|
* Where $object_name is the name of the subclass of DataObject you want
|
|
|
|
* to add the comments to and $settings is a map of configuration options
|
|
|
|
* and values
|
2010-11-30 01:32:05 +01:00
|
|
|
*
|
|
|
|
* Example: mysite/_config.php
|
|
|
|
*
|
|
|
|
* <code>
|
2010-11-30 11:06:22 +01:00
|
|
|
* // uses the default values
|
|
|
|
* Commenting::add('SiteTree');
|
|
|
|
*
|
|
|
|
* // set configuration
|
|
|
|
* Commenting::add('SiteTree', array(
|
|
|
|
* 'require_login' => true
|
|
|
|
* ));
|
2010-11-30 01:32:05 +01:00
|
|
|
* </code>
|
2012-07-31 10:45:29 +02:00
|
|
|
*
|
|
|
|
* To see all the configuration options read docs/en/Configuration.md or
|
|
|
|
* consult the Commenting class.
|
2010-11-30 01:32:05 +01:00
|
|
|
*/
|
|
|
|
|
2013-02-22 21:48:59 +01:00
|
|
|
if(class_exists('SiteTree')) {
|
|
|
|
Commenting::add('SiteTree');
|
|
|
|
}
|