/**
*
- * Our demo plugin will attach in three places.
+ * Our demo addon will attach in three places.
* The first is just prior to storing a local post.
*
*/
/**
*
- * Then we'll attach into the plugin settings page, and also the
+ * Then we'll attach into the addon settings page, and also the
* settings post hook so that we can create and update
* user preferences.
*
*/
- Addon::registerHook('plugin_settings', 'addon/krynn/krynn.php', 'krynn_settings');
- Addon::registerHook('plugin_settings_post', 'addon/krynn/krynn.php', 'krynn_settings_post');
+ Addon::registerHook('addon_settings', 'addon/krynn/krynn.php', 'krynn_settings');
+ Addon::registerHook('addon_settings_post', 'addon/krynn/krynn.php', 'krynn_settings_post');
logger("installed krynn");
}
*/
Addon::unregisterHook('post_local', 'addon/krynn/krynn.php', 'krynn_post_hook');
- Addon::unregisterHook('plugin_settings', 'addon/krynn/krynn.php', 'krynn_settings');
- Addon::unregisterHook('plugin_settings_post', 'addon/krynn/krynn.php', 'krynn_settings_post');
+ Addon::unregisterHook('addon_settings', 'addon/krynn/krynn.php', 'krynn_settings');
+ Addon::unregisterHook('addon_settings_post', 'addon/krynn/krynn.php', 'krynn_settings_post');
logger("removed krynn");
* An item was posted on the local system.
* We are going to look for specific items:
* - A status post by a profile owner
- * - The profile owner must have allowed our plugin
+ * - The profile owner must have allowed our addon
*
*/
/**
*
- * Called from the Plugin Setting form.
+ * Called from the addon Setting form.
* Add our own settings info to the page.
*
*/
$s .= '<div class="settings-block">';
$s .= '<h3>' . t('Krynn Settings') . '</h3>';
$s .= '<div id="krynn-enable-wrapper">';
- $s .= '<label id="krynn-enable-label" for="krynn-checkbox">' . t('Enable Krynn Plugin') . '</label>';
+ $s .= '<label id="krynn-enable-label" for="krynn-checkbox">' . t('Enable Krynn Addon') . '</label>';
$s .= '<input id="krynn-checkbox" type="checkbox" name="krynn" value="1" ' . $checked . '/>';
$s .= '</div><div class="clear"></div></div>';
/* provide a submit button */