You are here

function asset_img_src in Asset 5.2

Callback function for an image preview of an asset

Related topics

1 string reference to 'asset_img_src'
asset_menu in ./asset.module
Implementation of hook_menu().

File

./asset.module, line 888
Main module.

Code

function asset_img_src($asset, $format = NULL) {
  $path = asset_type_invoke($asset, 'img', NULL);
  if ($path) {
    return drupal_goto($path);
  }
  else {
    return drupal_not_found();
  }
}