]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromgplus/fromgplus.php
Update function names
[friendica-addons.git] / fromgplus / fromgplus.php
index b8910d5df98aff349ea80971b7db672a38c66dff..c028ea852ddef2beea32a59f72a090b6cf387868 100644 (file)
@@ -30,8 +30,8 @@ function fromgplus_uninstall() {
        Addon::unregisterHook('cron', 'addon/fromgplus/fromgplus.php', 'fromgplus_cron');
 
        // Old hooks
-       Addon::unregisterHook('plugin_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
-       Addon::unregisterHook('plugin_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post');
+       Addon::unregisterHook('addon_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
+       Addon::unregisterHook('addon_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post');
 }
 
 function fromgplus_addon_settings(&$a,&$s) {
@@ -94,19 +94,21 @@ function fromgplus_addon_settings_post(&$a,&$b) {
        }
 }
 
-function fromgplus_plugin_admin(&$a, &$o){
-        $t = get_markup_template("admin.tpl", "addon/fromgplus/");
+function fromgplus_addon_admin(&$a, &$o)
+{
+       $t = get_markup_template("admin.tpl", "addon/fromgplus/");
 
-        $o = replace_macros($t, [
-                '$submit' => t('Save Settings'),
-                '$key' => ['key', t('Key'), trim(Config::get('fromgplus', 'key')), t('')],
-        ]);
+       $o = replace_macros($t, [
+                       '$submit' => t('Save Settings'),
+                       '$key' => ['key', t('Key'), trim(Config::get('fromgplus', 'key')), t('')],
+       ]);
 }
 
-function fromgplus_plugin_admin_post(&$a){
-        $key = ((x($_POST,'key')) ? trim($_POST['key']) : '');
-        Config::set('fromgplus','key',$key);
-        info( t('Settings updated.'). EOL );
+function fromgplus_addon_admin_post(&$a)
+{
+       $key = ((x($_POST, 'key')) ? trim($_POST['key']) : '');
+       Config::set('fromgplus', 'key', $key);
+       info(t('Settings updated.'). EOL);
 }
 
 function fromgplus_cron($a,$b) {