<?PHP

# ----- HOOKABLE CWIS EVENTS
# (Only the events covered in the Developer Documentation have been implemented.)
$AF->RegisterEvent(array(
        # --- User Events
        "EVENT_USER_ADDED" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_USER_VERIFIED" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_USER_DELETED" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_USER_LOGIN" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_USER_LOGIN_RETURN" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_USER_LOGOUT" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_USER_LOGOUT_RETURN" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_USER_PASSWORD_CHANGED" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_USER_EMAIL_CHANGED" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_USER_AUTHENTICATION" => ApplicationFramework::EVENTTYPE_FIRST,
        "EVENT_USER_SIGNUP_VERIFY"  => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_USER_SIGNUP_EXTEND_ERROR_LIST" => ApplicationFramework::EVENTTYPE_CHAIN,
        # --- Search Events
        "EVENT_KEYWORD_SEARCH" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_FIELDED_SEARCH" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_SEARCH_RESULTS" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_SEARCH_COMPLETE" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_SEARCH_EXTERNAL" => ApplicationFramework::EVENTTYPE_NAMED,
        # --- Resource Editing Events
        "EVENT_RESOURCE_CREATE" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_RESOURCE_ADD" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_RESOURCE_DELETE" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_RESOURCE_FILE_ADD" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_RESOURCE_FILE_DELETE" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_PRE_FIELD_EDIT_FILTER" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_POST_FIELD_EDIT_FILTER" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_FIELD_DISPLAY_FILTER" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_APPEND_HTML_TO_FIELD_DISPLAY" => ApplicationFramework::EVENTTYPE_CHAIN,
        # --- Metadata Editing Events
        "EVENT_CNAME_REMAPPED" => ApplicationFramework::EVENTTYPE_DEFAULT,
        # --- User Interface Events
        "EVENT_IN_HTML_HEADER" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_REQUEST_SIDEBAR_CONTENT" => ApplicationFramework::EVENTTYPE_NAMED,
        "EVENT_COLLECTION_ADMINISTRATION_MENU" => ApplicationFramework::EVENTTYPE_NAMED,
        "EVENT_USER_ADMINISTRATION_MENU" => ApplicationFramework::EVENTTYPE_NAMED,
        "EVENT_SYSTEM_ADMINISTRATION_MENU" => ApplicationFramework::EVENTTYPE_NAMED,
        "EVENT_SYSTEM_INFO_LIST" => ApplicationFramework::EVENTTYPE_NAMED,
        "EVENT_MODIFY_PRIMARY_NAV" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_MODIFY_SECONDARY_NAV" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_APPEND_HTML_TO_FORM" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_VALIDATE_USER_COMMENT" => ApplicationFramework::EVENTTYPE_FIRST,
        "EVENT_URL_FIELD_CLICK" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_FULL_RECORD_VIEW" => ApplicationFramework::EVENTTYPE_DEFAULT,
        # --- Other Events
        "EVENT_OAIPMH_REQUEST" => ApplicationFramework::EVENTTYPE_DEFAULT,
        ));
