You are here

function asset_load in Asset 7

Same name and namespace in other branches
  1. 5.2 asset.module \asset_load()
  2. 5 asset.module \asset_load()
  3. 6 inc/asset.node.inc \asset_load()

Fetch an asset object.

Parameters

$aid: Integer specifying the asset id.

$reset: A boolean indicating that the internal cache should be reset.

Return value

object|bool A fully-loaded $asset object or FALSE if it cannot be loaded.

See also

asset_load_multiple()

11 calls to asset_load()
AssetFeedsProcessor::entityLoad in modules/asset_feeds/AssetFeedsProcessor.inc
Loads an existing asset.
assets_filter_replace_process in includes/asset.filters.inc
Filter callback for assets_filter_process.
assets_get_content in includes/asset.admin.inc
Page callback to get html for asset preview in wysiwyg.
assets_override_form in includes/asset.admin.inc
Page callback for asset override form in wysiwyg.
assets_override_form_submit in includes/asset.admin.inc
Custom submit handler.

... See full list

File

./asset.module, line 466
Asset module.

Code

function asset_load($aid, $reset = FALSE) {
  $assets = asset_load_multiple(array(
    $aid,
  ), array(), $reset);
  return reset($assets);
}