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>
|
|
|
|
*/
|
|
|
|
|
2010-12-03 03:01:21 +01:00
|
|
|
Commenting::add('SiteTree');
|