You are here

function asset_view in Asset 5.2

Menu callback for asset/#/view

Related topics

5 calls to asset_view()
asset_field_formatter in modules/asset_content.inc
Implementation of hook_field_formatter().
asset_page_default in ./asset.module
Menu callback for path==asset
asset_page_view in ./asset.module
Menu callback; view a single asset.
asset_search_wizard_preview_form in contrib/asset_search/asset_search.module
asset_wizard_preview in ./asset_wizard.module
Step 4: Display a preview of the formatted asset

File

./asset.module, line 600
Main module.

Code

function asset_view($asset) {
  drupal_set_title($asset->title);
  $output = asset_type_invoke($asset, 'view');
  module_invoke_all('assetapi', 'view', $asset);
  return $output;
}