Update function names
[friendica-addons.git] / impressum / impressum.php
index 15e338696836b05f9cc5882540f835968d6bbe91..df508868d9da0e77d86f93d1f6d0ad877f6d6fa8 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * Name: Impressum
- * Description: Plugin to add contact information to the about page (/friendica)
+ * Description: Addon to add contact information to the about page (/friendica)
  * Version: 1.3
  * Author: Tobias Diekershoff <https://f.diekershoff.de/profile/tobias>
  * License: 3-clause BSD license
@@ -16,13 +16,13 @@ use Friendica\Core\Config;
 function impressum_install() {
     Addon::registerHook('about_hook', 'addon/impressum/impressum.php', 'impressum_show');
     Addon::registerHook('page_end', 'addon/impressum/impressum.php', 'impressum_footer');
-    logger("installed impressum plugin");
+    logger("installed impressum Addon");
 }
 
 function impressum_uninstall() {
     Addon::unregisterHook('about_hook', 'addon/impressum/impressum.php', 'impressum_show');
     Addon::unregisterHook('page_end', 'addon/impressum/impressum.php', 'impressum_footer');
-    logger("uninstalled impressum plugin");
+    logger("uninstalled impressum Addon");
 }
 
 function impressum_module() {
@@ -74,7 +74,7 @@ function impressum_show($a,&$b) {
     }
 }
 
-function impressum_plugin_admin_post (&$a) {
+function impressum_addon_admin_post (&$a) {
     $owner = ((x($_POST, 'owner')) ? notags(trim($_POST['owner'])) : '');
     $ownerprofile = ((x($_POST, 'ownerprofile')) ? notags(trim($_POST['ownerprofile'])) : '');
     $postal = ((x($_POST, 'postal')) ? (trim($_POST['postal'])) : '');
@@ -89,7 +89,7 @@ function impressum_plugin_admin_post (&$a) {
     Config::set('impressum','footer_text',strip_tags($footer_text));
     info( t('Settings updated.'). EOL );
 }
-function impressum_plugin_admin (&$a, &$o) {
+function impressum_addon_admin (&$a, &$o) {
     $t = get_markup_template( "admin.tpl", "addon/impressum/" );
     $o = replace_macros($t, [
         '$submit' => t('Save Settings'),