Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 21 additions & 23 deletions config/hooks.php.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* Kronolith Hooks configuration file.
*
Expand All @@ -11,26 +10,25 @@
*
* $Id$
*/
if (!class_exists('Kronolith_Hooks')) {
class Kronolith_Hooks
{
/**
* Adds user-defined AJAX action handlers.
*
* @param string $action The AJAX action.
* @param Horde_Variables $vars The URL parameters.
*
* @return mixed The data to send to the browser (will be JSON encoded).
* @throws Horde_Exception
*/
// public function ajaxaction($action, $vars)
// {
// switch ($action) {
// case 'Foo':
// return 'bar';
// }
//
// throw new Horde_Exception('Unknown action');
// }
}

class Kronolith_Hooks
{
/**
* Adds user-defined AJAX action handlers.
*
* @param string $action The AJAX action.
* @param Horde_Variables $vars The URL parameters.
*
* @return mixed The data to send to the browser (will be JSON encoded).
* @throws Horde_Exception
*/
// public function ajaxaction($action, $vars)
// {
// switch ($action) {
// case 'Foo':
// return 'bar';
// }
//
// throw new Horde_Exception('Unknown action');
// }
}
Loading