I am writing a cck-widget/field and formatter. My field-settings contains a "base_url" setting. If I draw that out:
http://example.com/ [_some/path/to/a/file.avi________]
http://example.com
is the base_url. some/path/to/a/file.avi
is what user provides and gets stored in database.
The formatter should append that base_url to the user-supplied values:
function theme_video_url_formatter_embed($element) {
return "$element['base_url']/$element['#item']['safe']";
}
How can I pass the variable from field-setting $base_url
along, so it ends up in that formatter-theme-function?