mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08: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
12
irc/irc.php
12
irc/irc.php
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Name: IRC Chat Plugin
|
||||
* Name: IRC Chat Addon
|
||||
* Description: add an Internet Relay Chat chatroom on freenode
|
||||
* Version: 1.1
|
||||
* Author: tony baldwin <https://free-haven.org/profile/tony>
|
||||
|
@ -12,13 +12,13 @@ use Friendica\Core\PConfig;
|
|||
|
||||
function irc_install() {
|
||||
Addon::registerHook('app_menu', 'addon/irc/irc.php', 'irc_app_menu');
|
||||
Addon::registerHook('plugin_settings', 'addon/irc/irc.php', 'irc_addon_settings');
|
||||
Addon::registerHook('plugin_settings_post', 'addon/irc/irc.php', 'irc_addon_settings_post');
|
||||
Addon::registerHook('addon_settings', 'addon/irc/irc.php', 'irc_addon_settings');
|
||||
Addon::registerHook('addon_settings_post', 'addon/irc/irc.php', 'irc_addon_settings_post');
|
||||
}
|
||||
|
||||
function irc_uninstall() {
|
||||
Addon::unregisterHook('app_menu', 'addon/irc/irc.php', 'irc_app_menu');
|
||||
Addon::unregisterHook('plugin_settings', 'addon/irc/irc.php', 'irc_addon_settings');
|
||||
Addon::unregisterHook('addon_settings', 'addon/irc/irc.php', 'irc_addon_settings');
|
||||
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ return $o;
|
|||
|
||||
}
|
||||
|
||||
function irc_plugin_admin_post (&$a) {
|
||||
function irc_addon_admin_post (&$a) {
|
||||
if(! is_site_admin())
|
||||
return;
|
||||
|
||||
|
@ -131,7 +131,7 @@ function irc_plugin_admin_post (&$a) {
|
|||
info( t('IRC settings saved.') . EOL);
|
||||
}
|
||||
}
|
||||
function irc_plugin_admin (&$a, &$o) {
|
||||
function irc_addon_admin (&$a, &$o) {
|
||||
$sitechats = Config::get('irc','sitechats'); /* popular channels */
|
||||
$autochans = Config::get('irc','autochans'); /* auto connect chans */
|
||||
$t = get_markup_template( "admin.tpl", "addon/irc/" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue