function emfield_imagerotator_url in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 emfield.module \emfield_imagerotator_url()
- 6.2 emfield.module \emfield_imagerotator_url()
Returns the URL to the registered JW Image Rotator, if such exists.
2 calls to emfield_imagerotator_url()
- emfield_settings in ./
emfield.admin.inc - Callback for admin/content/emfield.
- emfield_settings in deprecated/
emfield-deprecated.admin.inc - Callback for admin/content/emfield.
File
- deprecated/
emfield-deprecated.inc, line 884 - Functionality to be deprecated from earlier versions of Embedded Media Field.
Code
function emfield_imagerotator_url($reset = FALSE) {
static $path;
if (is_null($path) || $reset) {
if (is_null($path = variable_get('emfield_imagerotator_url', NULL)) || !$path && $reset) {
$path = _emfield_autodiscover_path('(^imagerotator\\.swf$)');
variable_set('emfield_imagerotator_url', $path);
}
}
return $path;
}