elgg_in_context($context)
Check if this context exists anywhere in the stack.
elgg_get_current_url()
Returns the current page's complete URL.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.