2012-04-23 21:54:49 +00:00
|
|
|
<?php
|
|
|
|
|
2012-06-22 22:05:39 +00:00
|
|
|
require_once('files_versions/versions.php');
|
2012-04-23 21:54:49 +00:00
|
|
|
|
2012-05-01 22:50:26 +00:00
|
|
|
OCP\App::registerAdmin('files_versions', 'settings');
|
2012-06-20 17:25:12 +00:00
|
|
|
OCP\App::registerPersonal('files_versions','settings-personal');
|
|
|
|
|
2012-05-01 18:03:41 +00:00
|
|
|
OCP\Util::addscript('files_versions', 'versions');
|
2012-04-23 21:54:49 +00:00
|
|
|
|
|
|
|
// Listen to write signals
|
2012-06-22 22:05:39 +00:00
|
|
|
OCP\Util::connectHook('OC_Filesystem', 'post_write', "OCA_Versions\Storage", "write_hook");
|
2012-06-28 12:06:20 +00:00
|
|
|
// Listen to delete and rename signals
|
|
|
|
OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA_Versions\Storage", "removeVersions");
|
|
|
|
OCP\Util::connectHook('OC_Filesystem', 'rename', "OCA_Versions\Storage", "renameVersions");
|