app.php 452 B

123456789101112131415161718192021
  1. <?php
  2. require_once('apps/files_versions/versions.php');
  3. // Add an entry in the app list
  4. OCP\App::register( array(
  5. 'order' => 10,
  6. 'id' => 'files_versions',
  7. 'name' => 'Versioning' ));
  8. OCP\App::registerAdmin('files_versions', 'settings');
  9. OCP\Util::addscript('files_versions', 'versions');
  10. // Listen to write signals
  11. OCP\Util::connectHook(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_write, "OCA_Versions\Storage", "write_hook");
  12. ?>