mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 11:28:49 +00:00
Update function names
update function names and hook calls
This commit is contained in:
parent
0afd633346
commit
c71f7b0e1a
50 changed files with 356 additions and 348 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue