Use $base_url in a computed field? Using $base_url to build a link in a computed field, I get this error:


  Notice: Undefined variable: base_url in eval() (line 1 of F:\wamp\www\mysite\sites\all\modules\computed_field\computed_field.module(468) : eval()'d code).


Is it a way to get the site base URL in a computed field?
This is a global scope variable and you can access it by using $GLOBALS['base_url'] instead or calling the core base_path() function to pull it into your computed field definition.