mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +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
|
@ -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');
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue