rename register_hook to just hook, for consistency with the perl
[ikiwiki.git] / plugins / proxy.py
index 55c552ab22e30aab59c2a10c3192bd9a30e7ebea..582010c9af550c87d7f045128efd49e62faacd26 100644 (file)
@@ -151,7 +151,7 @@ class IkiWikiProcedureProxy(object):
         self._xmlrpc_handler = _IkiWikiExtPluginXMLRPCHandler(self._debug_fn)
         self._xmlrpc_handler.register_function(self._importme, name='import')
 
-    def register_hook(self, type, function):
+    def hook(self, type, function):
         self._hooks.append((type, function.__name__))
         self._xmlrpc_handler.register_function(function)