File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 56
56
57
57
function advancedcontentfilter_install (App $ a )
58
58
{
59
- Hook::add ('dbstructure_definition ' , __FILE__ , 'advancedcontentfilter_dbstructure_definition ' );
59
+ Hook::register ('dbstructure_definition ' , __FILE__ , 'advancedcontentfilter_dbstructure_definition ' );
60
60
Hook::register ('prepare_body_content_filter ' , __FILE__ , 'advancedcontentfilter_prepare_body_content_filter ' );
61
61
Hook::register ('addon_settings ' , __FILE__ , 'advancedcontentfilter_addon_settings ' );
62
62
63
+ Hook::add ('dbstructure_definition ' , __FILE__ , 'advancedcontentfilter_dbstructure_definition ' );
63
64
DBStructure::update ($ a ->getBasePath (), false , true );
64
65
65
66
Logger::log ("installed advancedcontentfilter " );
66
67
}
67
68
68
69
function advancedcontentfilter_uninstall ()
69
70
{
71
+ Hook::unregister ('dbstructure_definition ' , __FILE__ , 'advancedcontentfilter_dbstructure_definition ' );
70
72
Hook::unregister ('prepare_body_content_filter ' , __FILE__ , 'advancedcontentfilter_prepare_body_content_filter ' );
71
73
Hook::unregister ('addon_settings ' , __FILE__ , 'advancedcontentfilter_addon_settings ' );
72
74
}
You can’t perform that action at this time.
0 commit comments