- registerFilter('init', 'LOAD_CONFIGURATION');
- registerFilter('init', 'INIT_EXTENSIONS');
- registerFilter('init', 'LOAD_RUNTIME_INCLUDES');
- registerFilter('init', 'CHECK_SVN_REVISION');
- registerFilter('init', 'RUN_DAILY_RESET');
- registerFilter('init', 'INIT_RANDOMIZER');
- registerFilter('init', 'TRIGGER_SENDING_POOL');
- registerFilter('init', 'DETERMINE_USERNAME');
- registerFilter('init', 'DETERMINE_WHAT_ACTION');
- registerFilter('init', 'UPDATE_LOGIN_DATA');
- registerFilter('init', 'ACTIVATE_EXCHANGE');
-
- // Login failures handler
- registerFilter('post_youhere_line', 'CALL_HANDLER_LOGIN_FAILTURES');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'LOAD_CONFIGURATION');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_RANDOMIZER');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'LOAD_RUNTIME_INCLUDES');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_EXTENSIONS');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_SESSION');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'SET_CURRENT_DATE');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_RANDOM_NUMBER');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'CHECK_REPOSITORY_REVISION');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_HOURLY_RESET');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_DAILY_RESET');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_WEEKLY_RESET');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_MONTHLY_RESET');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_YEARLY_RESET');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'TRIGGER_SENDING_POOL');
+ // @TODO Remove this forced removal after a year or so
+ unregisterFilter(__FUNCTION__, __LINE__, 'init', 'DETERMINE_USERNAME', TRUE);
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'DETERMINE_WHAT_ACTION');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'COUNT_MODULE');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'UPDATE_LOGIN_DATA');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'ACTIVATE_EXCHANGE');
+ registerFilter(__FUNCTION__, __LINE__, 'init', 'REDIRECT_WRONG_SERVER_NAME');
+
+ // Post-initialization
+ registerFilter(__FUNCTION__, __LINE__, 'post_init', 'DETERMINE_USERNAME');
+
+ // Page headers - pre-filter (normally, you want to register here)
+ registerFilter(__FUNCTION__, __LINE__, 'pre_page_header', 'LOAD_PAGE_HEADER');
+
+ // Page headers - post-filter (normally, you don't want to register here)
+ //-------------------- LAST FILTER FOR THIS CHAIN! ------------------------
+ registerFilter(__FUNCTION__, __LINE__, 'post_page_header', 'FINISH_PAGE_HEADER');
+ //-------------------- LAST FILTER FOR THIS CHAIN! ------------------------
+
+ // 'You are here' navigation - post filter
+ registerFilter(__FUNCTION__, __LINE__, 'post_youhere_line', 'CALL_HANDLER_LOGIN_FAILTURES');
+ registerFilter(__FUNCTION__, __LINE__, 'post_youhere_line', 'HANDLE_HOME_IN_INDEX_SETTING');