*/
function cookienotice_install()
{
- $file = 'addon/cookienotice/cookienotice.php';
- Hook::register('page_content_top', $file, 'cookienotice_page_content_top');
- Hook::register('page_end', $file, 'cookienotice_page_end');
- Hook::register('addon_settings', $file, 'cookienotice_addon_settings');
- Hook::register('addon_settings_post', $file, 'cookienotice_addon_settings_post');
+ Hook::register('page_content_top', __FILE__, 'cookienotice_page_content_top');
+ Hook::register('page_end', __FILE__, 'cookienotice_page_end');
+ Hook::register('addon_settings', __FILE__, 'cookienotice_addon_settings');
+ Hook::register('addon_settings_post', __FILE__, 'cookienotice_addon_settings_post');
}
/**
*/
function cookienotice_uninstall()
{
- $file = 'addon/cookienotice/cookienotice.php';
- Hook::unregister('page_content_top', $file, 'cookienotice_page_content_top');
- Hook::unregister('page_end', $file, 'cookienotice_page_end');
- Hook::unregister('addon_settings', $file, 'cookienotice_addon_settings');
- Hook::unregister('addon_settings_post', $file, 'cookienotice_addon_settings_post');
+ Hook::unregister('page_content_top', __FILE__, 'cookienotice_page_content_top');
+ Hook::unregister('page_end', __FILE__, 'cookienotice_page_end');
+ Hook::unregister('addon_settings', __FILE__, 'cookienotice_addon_settings');
+ Hook::unregister('addon_settings_post', __FILE__, 'cookienotice_addon_settings_post');
}
/**