Codex tools: Log in
This page lacks some serious documentation about how to hook in this function within a plugin (ESPECIALLY in regard to on activation hook).
The example doesn't even have the function call wrapped within a function.