<?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,
        # --- 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,
        # --- Resource Editing Events
        "EVENT_RESOURCE_ADDED" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_RESOURCE_DELETED" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_RESOURCE_DUPLICATED" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_RESOURCE_MODIFIED" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_FIELD_MODIFIED" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_PRE_FIELD_EDIT_FILTER" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_POST_FIELD_EDIT_FILTER" => ApplicationFramework::EVENTTYPE_CHAIN,
        "EVENT_FIELD_DISPLAY_FILTER" => ApplicationFramework::EVENTTYPE_CHAIN,
        # --- Resource Display Events
        "EVENT_DISPLAY_RESOURCE_FIELD" => ApplicationFramework::EVENTTYPE_CHAIN,
        # --- User Interface Events
        "EVENT_IN_HTML_HEADER" => ApplicationFramework::EVENTTYPE_DEFAULT,
        "EVENT_COLLECTION_ADMINISTRATION_MENU" => ApplicationFramework::EVENTTYPE_NAMED,
        "EVENT_USER_ADMINISTRATION_MENU" => ApplicationFramework::EVENTTYPE_NAMED,
        "EVENT_SYSTEM_ADMINISTRATION_MENU" => ApplicationFramework::EVENTTYPE_NAMED,
        # --- Other Events
        "EVENT_OAIPMH_REQUEST" => ApplicationFramework::EVENTTYPE_DEFAULT,
        ));

?>
