Addon class

plugin moved to Addon src class
This commit is contained in:
Adam Magness 2018-01-16 19:51:12 -05:00
parent e97235353f
commit 0afd633346
81 changed files with 567 additions and 566 deletions

View file

@ -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) {