mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 11:28:49 +00:00
Addon class
plugin moved to Addon src class
This commit is contained in:
parent
e97235353f
commit
0afd633346
81 changed files with 567 additions and 566 deletions
|
@ -7,19 +7,19 @@
|
|||
* based upon NSFW from Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
*
|
||||
*/
|
||||
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function showmore_install() {
|
||||
register_hook('prepare_body', 'addon/showmore/showmore.php', 'showmore_prepare_body');
|
||||
register_hook('plugin_settings', 'addon/showmore/showmore.php', 'showmore_addon_settings');
|
||||
register_hook('plugin_settings_post', 'addon/showmore/showmore.php', 'showmore_addon_settings_post');
|
||||
Addon::registerHook('prepare_body', 'addon/showmore/showmore.php', 'showmore_prepare_body');
|
||||
Addon::registerHook('plugin_settings', 'addon/showmore/showmore.php', 'showmore_addon_settings');
|
||||
Addon::registerHook('plugin_settings_post', 'addon/showmore/showmore.php', 'showmore_addon_settings_post');
|
||||
}
|
||||
|
||||
function showmore_uninstall() {
|
||||
unregister_hook('prepare_body', 'addon/showmore/showmore.php', 'showmore_prepare_body');
|
||||
unregister_hook('plugin_settings', 'addon/showmore/showmore.php', 'showmore_addon_settings');
|
||||
unregister_hook('plugin_settings_post', 'addon/showmore/showmore.php', 'showmore_addon_settings_post');
|
||||
Addon::unregisterHook('prepare_body', 'addon/showmore/showmore.php', 'showmore_prepare_body');
|
||||
Addon::unregisterHook('plugin_settings', 'addon/showmore/showmore.php', 'showmore_addon_settings');
|
||||
Addon::unregisterHook('plugin_settings_post', 'addon/showmore/showmore.php', 'showmore_addon_settings_post');
|
||||
}
|
||||
|
||||
function showmore_addon_settings(&$a,&$s) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue