mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 18:38: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
|
@ -3,7 +3,7 @@
|
|||
|
||||
/**
|
||||
* Name: Yourls
|
||||
* Description: Defines a YourLS url shortener for the Statusnet & Twitter plugins
|
||||
* Description: Defines a YourLS url shortener for the Statusnet & Twitter addons
|
||||
* Version: 1.0
|
||||
* Author: Keith Fernie <http://friendika.me4.it/profile/keith>
|
||||
*
|
||||
|
@ -12,15 +12,15 @@ use Friendica\Core\Addon;
|
|||
use Friendica\Core\Config;
|
||||
|
||||
function yourls_install() {
|
||||
Addon::registerHook('plugin_settings', 'addon/yourls/yourls.php', 'yourls_addon_settings');
|
||||
Addon::registerHook('plugin_settings_post', 'addon/yourls/yourls.php', 'yourls_addon_settings_post');
|
||||
Addon::registerHook('addon_settings', 'addon/yourls/yourls.php', 'yourls_addon_settings');
|
||||
Addon::registerHook('addon_settings_post', 'addon/yourls/yourls.php', 'yourls_addon_settings_post');
|
||||
|
||||
}
|
||||
|
||||
|
||||
function yourls_uninstall() {
|
||||
Addon::unregisterHook('plugin_settings', 'addon/yourls/yourls.php', 'yourls_addon_settings');
|
||||
Addon::unregisterHook('plugin_settings_post', 'addon/yourls/yourls.php', 'yourls_addon_settings_post');
|
||||
Addon::unregisterHook('addon_settings', 'addon/yourls/yourls.php', 'yourls_addon_settings');
|
||||
Addon::unregisterHook('addon_settings_post', 'addon/yourls/yourls.php', 'yourls_addon_settings_post');
|
||||
Config::set('yourls','url1',trim($_POST['']));
|
||||
Config::set('yourls','username1',trim($_POST['']));
|
||||
Config::set('yourls','password1',trim($_POST['']));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue