Elgg  Version 2.2
hooks/trigger/advanced.php

Trigger a hook with a default value and use the results to populate a menu.