Update function names
update function names and hook calls
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
*
|
||||
* Provides a set of text "snippets" which can be inserted into a comment window by clicking on them.
|
||||
* First enable the addon in the system admin panel.
|
||||
* Then each person can tailor their choice of words in Settings->Plugin Settings in the Qcomment
|
||||
* Then each person can tailor their choice of words in Settings->Addon Settings in the Qcomment
|
||||
* pane. Initially no qcomments are provided, but on viewing the settings page, a default set of
|
||||
* of words is suggested. These can be accepted (click Submit) or edited first. Each text line represents
|
||||
* a different qcomment.
|
||||
@@ -23,15 +23,15 @@ use Friendica\Core\Addon;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function qcomment_install() {
|
||||
Addon::registerHook('plugin_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings');
|
||||
Addon::registerHook('plugin_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post');
|
||||
Addon::registerHook('addon_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings');
|
||||
Addon::registerHook('addon_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post');
|
||||
|
||||
}
|
||||
|
||||
|
||||
function qcomment_uninstall() {
|
||||
Addon::unregisterHook('plugin_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings');
|
||||
Addon::unregisterHook('plugin_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post');
|
||||
Addon::unregisterHook('addon_settings', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings');
|
||||
Addon::unregisterHook('addon_settings_post', 'addon/qcomment/qcomment.php', 'qcomment_addon_settings_post');
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user