You are here

function asset_load_root in Asset 5.2

Return a special-case pseudo-asset for asset->aid == 0. This is used in several places to designate the root of the Asset tree.

Related topics

1 call to asset_load_root()
asset_load in ./asset.module
Load an asset from the database

File

./asset.module, line 341
Main module.

Code

function asset_load_root() {
  $asset = new stdClass();
  $asset->aid = 0;
  $asset->pid = 0;
  $asset->type = 'directory';
  $asset->title = t('Assets');
  return $asset;
}