Updating to the newer option page format.
[squirrelmail.git] / plugins / abook_take / setup.php
index f135f46..2751f76 100755 (executable)
@@ -24,8 +24,7 @@ function squirrelmail_plugin_init_abook_take()
 
     $squirrelmail_plugin_hooks['read_body_bottom']['abook_take'] = 'abook_take_read_body_bottom';
     $squirrelmail_plugin_hooks['loading_prefs']['abook_take']    = 'abook_take_loading_prefs';
-    $squirrelmail_plugin_hooks['options_display_inside']['abook_take'] = 'abook_take_options_display_inside';
-    $squirrelmail_plugin_hooks['options_display_save']['abook_take']   = 'abook_take_options_display_save';
+    $squirrelmail_plugin_hooks['optpage_loadhook_display']['abook_take'] = 'abook_take_optpage_loadhook_display';
 }
 
 function abook_take_read_body_bottom() {
@@ -40,14 +39,8 @@ function abook_take_loading_prefs() {
     abook_take_pref();
 }
 
-function abook_take_options_display_inside() {
+function abook_take_optpage_loadhook_display() {
     include_once(SM_PATH . 'plugins/abook_take/functions.php');
 
     abook_take_options();
 }
-
-function abook_take_options_display_save() {
-    include_once(SM_PATH . 'plugins/abook_take/functions.php');
-
-    abook_take_save();
-}